From b8595b89ac8021448818a474ebe3fadad8416887 Mon Sep 17 00:00:00 2001 From: QQ Date: Tue, 3 Nov 2026 14:26:39 +0800 Subject: [PATCH] =?UTF-8?q?revert(dashboard):=20=E7=83=AD=E5=8A=9B?= =?UTF-8?q?=E5=9B=BE=E5=9B=9E=E5=88=B0=20v1.3-live=20=E7=9A=84=E6=A0=B7?= =?UTF-8?q?=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 撤销 84610d3 里「压平内层容器」那一段(border/背景/圆角/outline 全部清掉), 恢复成 v1.3-live 的规则:卡片 14/16/8 内边距 + 隐藏 divider + #user-heatmap margin 0。 扁平化之后 SVG 被拉到整列宽,格子变成长条,反而更难看。 样式表 ?v=13 --- custom/public/assets/css/qq-pages.css | 21 --------------------- custom/templates/custom/header.tmpl | 6 +++--- 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/custom/public/assets/css/qq-pages.css b/custom/public/assets/css/qq-pages.css index c2938a2..c7a5b49 100644 --- a/custom/public/assets/css/qq-pages.css +++ b/custom/public/assets/css/qq-pages.css @@ -552,27 +552,6 @@ margin: 0; } -/* 热力图:官方组件自己会画一层容器(边框/背景/圆角),和卡片边框叠成「框里套框」。 - 这里把内层容器压平,只留卡片这一层边框;tooltip 不动。 */ -.qq-dash-heat #user-heatmap, -.qq-dash-heat #user-heatmap > div, -.qq-dash-heat #user-heatmap .vch__wrapper, -.qq-dash-heat #user-heatmap .vch__legend, -.qq-dash-heat #user-heatmap svg { - border: 0 !important; - border-radius: 0 !important; - box-shadow: none !important; - background: transparent !important; - outline: 0 !important; -} - -.qq-dash-heat #user-heatmap .vch__tooltip, -.qq-dash-heat .ui.popup { - border: 1px solid var(--color-secondary) !important; - border-radius: 8px !important; - background: var(--color-box-body) !important; - box-shadow: 0 4px 16px rgb(0 0 0 / 12%) !important; -} /* 动态流:Gitea 1.21 用的是 .flex-list / .flex-item(不是老的 .ui.feed), 它默认 padding:10px 0 —— 没有左右内边距,头像会贴到卡片边框上。 */ diff --git a/custom/templates/custom/header.tmpl b/custom/templates/custom/header.tmpl index d2e4e58..054816c 100644 --- a/custom/templates/custom/header.tmpl +++ b/custom/templates/custom/header.tmpl @@ -4,9 +4,9 @@ 注意:只做外观增强,不引入任何外部依赖,全部资源随 custom/ 一起发布 */}} - - - + + +