dot na zanikach
This commit is contained in:
@@ -52,8 +52,8 @@ body {
|
||||
/* Wybór zakresu czasu - Poprawiona responsywność */
|
||||
.time-btn-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap; /* Pozwala na zawijanie przycisków do nowej linii */
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
padding: 10px 0;
|
||||
justify-content: center;
|
||||
}
|
||||
@@ -68,6 +68,10 @@ body {
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
min-width: 45px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.time-btn.active {
|
||||
@@ -95,11 +99,28 @@ body {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
/* Nagłówek logów - naprawia wchodzenie na siebie tekstu */
|
||||
.events-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
#eventRangeLabel {
|
||||
font-size: 0.75rem;
|
||||
color: #8b949e;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.event-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
flex-wrap: wrap; /* Pozwala na łamanie opisu pod czas na bardzo małych ekranach */
|
||||
}
|
||||
|
||||
.event-item:last-child {
|
||||
@@ -119,12 +140,13 @@ body {
|
||||
font-size: 0.85rem;
|
||||
color: #8b949e;
|
||||
margin-right: 15px;
|
||||
white-space: nowrap;
|
||||
/* Usunięto white-space: nowrap, aby czas mógł się łamać */
|
||||
}
|
||||
|
||||
.event-desc {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-main);
|
||||
flex: 1 1 auto; /* Pozwala opisowi zajmować dostępną przestrzeń */
|
||||
}
|
||||
|
||||
.no-events {
|
||||
@@ -146,29 +168,29 @@ footer {
|
||||
}
|
||||
|
||||
.main-chart-card {
|
||||
height: 45vh;
|
||||
height: 40vh;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.time-btn {
|
||||
flex: 1 1 calc(30% - 10px);
|
||||
min-width: 70px;
|
||||
flex: 1 1 calc(25% - 8px);
|
||||
min-width: 40px;
|
||||
font-size: 0.7rem !important;
|
||||
padding: 8px 4px !important;
|
||||
padding: 8px 2px !important;
|
||||
}
|
||||
|
||||
.events-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.event-item {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.event-badge {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.event-time {
|
||||
margin-right: 0;
|
||||
margin-top: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,4 +202,4 @@ footer {
|
||||
margin: 10px 0;
|
||||
text-align: center;
|
||||
color: #ffbb33;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -294,7 +294,6 @@ function renderEventLog(events, range) {
|
||||
|
||||
item.innerHTML = `
|
||||
<div style="display: flex; align-items: center; flex-grow: 1;">
|
||||
<!-- Badge statusu z pierścieniem w kolorze fazy -->
|
||||
<div class="event-badge" style="
|
||||
background-color: ${config.color};
|
||||
box-shadow: 0 0 0 2px ${phase.color};
|
||||
@@ -326,7 +325,7 @@ function renderEventLog(events, range) {
|
||||
*/
|
||||
window.showEventOnChart = function(startTimeStr) {
|
||||
const eventTime = new Date(startTimeStr).getTime();
|
||||
const padding = 1.5 * 60 * 60 * 1000; // 1.5 godziny w milisekundach
|
||||
const padding = 3 * 60 * 60 * 1000; // 3 godziny w milisekundach
|
||||
|
||||
const min = eventTime - padding;
|
||||
const max = eventTime + padding;
|
||||
|
||||
Reference in New Issue
Block a user