From 3ba3b748f896d7812c2d2e4fbed003037cf42a80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Wed, 4 Feb 2026 15:03:08 +0100 Subject: [PATCH] dot na zanikach --- static/css/style.css | 52 +++++++++++++++++++++++++++++++------------- static/js/monitor.js | 3 +-- 2 files changed, 38 insertions(+), 17 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 09ee2ac..2e2be0f 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -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; -} \ No newline at end of file +} diff --git a/static/js/monitor.js b/static/js/monitor.js index 888f00f..20b214e 100644 --- a/static/js/monitor.js +++ b/static/js/monitor.js @@ -294,7 +294,6 @@ function renderEventLog(events, range) { item.innerHTML = `
-