diff --git a/notification/scripts/display.js b/notification/scripts/display.js index cbe2d8e..34b848f 100644 --- a/notification/scripts/display.js +++ b/notification/scripts/display.js @@ -31,13 +31,16 @@ function updateDisplay() { function formatTime(ms) { try { - if (ms < 0) return '00:00'; + if (ms < 0) return '00:00:00'; var totalSeconds = Math.floor(ms / 1000), - minutes = Math.floor(totalSeconds / 60), + hours = Math.floor(totalSeconds / 3600), + minutes = Math.floor((totalSeconds % 3600) / 60), seconds = totalSeconds % 60; - return (minutes < 10 ? '0' : '') + minutes + ':' + (seconds < 10 ? '0' : '') + seconds; + return (hours < 10 ? '0' : '') + hours + ':' + + (minutes < 10 ? '0' : '') + minutes + ':' + + (seconds < 10 ? '0' : '') + seconds; } catch (e) { - return '--:--'; + return '--:--:--'; } } diff --git a/notification/styles/action-btn.css b/notification/styles/action-btn.css index 21f1d5e..44fce6f 100644 --- a/notification/styles/action-btn.css +++ b/notification/styles/action-btn.css @@ -10,6 +10,9 @@ transition: all 0.2s ease; box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25); margin-top: 10px; + margin: 0; + height: 38px; + line-height: 18px; } .action-btn:hover { transform: translateY(-1px); diff --git a/notification/styles/schedule-table.css b/notification/styles/schedule-table.css index 3137192..e1b3e15 100644 --- a/notification/styles/schedule-table.css +++ b/notification/styles/schedule-table.css @@ -7,15 +7,17 @@ overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); } +.schedule-table th, .schedule-table td { + padding: 14px 16px; + text-align: left; +} .schedule-table th { background: #f8f9fa; - padding: 16px; color: #57606f; font-weight: 600; border-bottom: 2px solid #e0e6ed; } .schedule-table td { - padding: 14px; border-bottom: 1px solid #f1f3f6; } .current-class {