From 3eb7d32fa9e4e1fcc80a1383ac162c7ce4a0a10b Mon Sep 17 00:00:00 2001 From: subtrack Date: Tue, 20 Oct 2026 01:03:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(v1.9.5):=20=E5=A4=A7=E5=B1=8F=E7=83=AD?= =?UTF-8?q?=E5=8A=9B=E6=97=A5=E5=8E=86=E6=A0=BC=E5=AD=90=E9=94=99=E4=BD=8D?= =?UTF-8?q?=E4=B8=8E=E6=95=B0=E5=AD=97=E5=8F=8D=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 根因:重构时 --ink-2 由「文字色」变成「背景色」,热力格数字取到深色背景色;同时 aspect-ratio + 内容宽度导致列宽不均、右侧被裁 - 热力网格强制 repeat(7, minmax(0,1fr)),单元格 width:100%、min-width:0、min-height:34px,去掉 aspect-ratio - 格子内日期/计数/说明统一高对比文字,计数用亮绿加粗 - 非本月日期透明度从 .28 提到 .45,历史日期 .66→.75,避免整格发黑 - 仍为 v1.9.5,仅前端样式 --- internal/web/static/screen.css | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/internal/web/static/screen.css b/internal/web/static/screen.css index a385a68..82e0a08 100644 --- a/internal/web/static/screen.css +++ b/internal/web/static/screen.css @@ -436,4 +436,33 @@ body::before { .kpi b, .kpi strong { color: #eafff6 !important; } .heat-cell.h1 { color: #dff5ea; } /* v1.9.4:非本月日期再提亮一档 */ -.heat-cell.out, .scr-cal .out { color: #a9c3b6 !important; opacity: .85; } \ No newline at end of file +.heat-cell.out, .scr-cal .out { color: #a9c3b6 !important; opacity: .85; } +/* v1.9.5:热力日历对齐修复 + 文字反色 */ +.panel-head { position: relative; z-index: 2; } +.heat-grid { overflow: hidden; min-width: 0; } +.heat-dow, .heat-row { + display: grid !important; + grid-template-columns: repeat(7, minmax(0, 1fr)) !important; + grid-auto-flow: row; + gap: 4px; + width: 100%; + min-width: 0; +} +.heat-row { align-items: stretch; } +.heat-cell { + width: 100% !important; + min-width: 0; + aspect-ratio: auto !important; + min-height: 34px; + padding: 2px 6px; + overflow: hidden; +} +.heat-cell span, .heat-cell b, .heat-cell em { + color: var(--ink-ink) !important; + font-family: "Bahnschrift", monospace; + white-space: nowrap; +} +.heat-cell b { color: #63d6ad !important; font-weight: 700; } +.heat-cell.out { opacity: .45 !important; } +.heat-cell.past { opacity: .75 !important; } +.heat-legend { margin-top: 6px; color: var(--muted); } \ No newline at end of file