From 84610d3638795cd0a36fc39fe00e1bc2602ea71a Mon Sep 17 00:00:00 2001 From: QQ Date: Tue, 3 Nov 2026 11:13:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(dashboard):=20=E5=8E=8B=E5=B9=B3=E7=83=AD?= =?UTF-8?q?=E5=8A=9B=E5=9B=BE=E5=86=85=E5=B1=82=E5=AE=B9=E5=99=A8=EF=BC=8C?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E3=80=8C=E6=A1=86=E9=87=8C=E5=A5=97=E6=A1=86?= =?UTF-8?q?=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gitea 的热力图组件自带一层容器(边框/背景/圆角),叠在卡片边框上就成了双层框。 把 #user-heatmap 及其内部 wrapper/legend/svg 的边框、背景、阴影全部清掉, 只保留卡片这一层;tooltip 单独恢复样式。样式表 ?v=7 --- custom/public/assets/css/qq-pages.css | 22 ++++++++++++++++++++++ custom/templates/custom/header.tmpl | 6 +++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/custom/public/assets/css/qq-pages.css b/custom/public/assets/css/qq-pages.css index 076bf8f..44740a8 100644 --- a/custom/public/assets/css/qq-pages.css +++ b/custom/public/assets/css/qq-pages.css @@ -516,6 +516,28 @@ 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; +} + .qq-dash-feed .ui.feed { padding: 10px 16px 16px; margin: 0; diff --git a/custom/templates/custom/header.tmpl b/custom/templates/custom/header.tmpl index dccb62c..6df4ba9 100644 --- a/custom/templates/custom/header.tmpl +++ b/custom/templates/custom/header.tmpl @@ -4,9 +4,9 @@ 注意:只做外观增强,不引入任何外部依赖,全部资源随 custom/ 一起发布 */}} - - - + + +