From 8aabdb8e00ee540fc24b63cc55ac266c33b9480b Mon Sep 17 00:00:00 2001 From: MKStoler1024 <158786854+MKStoler1024@users.noreply.github.com> Date: Sat, 12 Apr 2025 15:02:33 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E6=98=BE=E7=A4=BA=EF=BC=8C=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=B0=8F=E6=97=B6=E5=92=8C=E7=A7=92=E7=9A=84=E6=94=AF=E6=8C=81?= =?UTF-8?q?=EF=BC=9B=E4=BC=98=E5=8C=96=E8=A1=A8=E6=A0=BC=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E7=BB=9F=E4=B8=80=E5=8D=95=E5=85=83=E6=A0=BC=E5=86=85?= =?UTF-8?q?=E8=BE=B9=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notification/scripts/display.js | 11 +++++++---- notification/styles/action-btn.css | 3 +++ notification/styles/schedule-table.css | 6 ++++-- 3 files changed, 14 insertions(+), 6 deletions(-) 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 {