From c79c3904829825e9af57d4223711345553bbe294 Mon Sep 17 00:00:00 2001 From: xfy Date: Fri, 3 Jul 2026 11:15:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20ADMIN=5FTABLE=5FCLASS=20=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=20overflow-hidden=EF=BC=8C=E4=BF=AE=E5=A4=8D=20toolti?= =?UTF-8?q?p=20=E8=A2=AB=E8=A3=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit overflow-hidden 用于圆角裁剪表格,但会硬裁掉行内按钮的 tooltip (无论朝上朝下)。去掉后:表格行 hover 背景 (bg-paper-entry) 与 容器背景同色,圆角处无视觉差异,tooltip 可正常溢出表格边界。 全局生效,所有 admin 表格的 tooltip 不再被裁。 --- src/components/ui.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/ui.rs b/src/components/ui.rs index d8a70ca..a0c870c 100644 --- a/src/components/ui.rs +++ b/src/components/ui.rs @@ -18,9 +18,12 @@ use crate::router::Route; /// Admin 卡片容器:白底圆角描边,亮/暗双模式。用于 stat 卡片、面板等。 pub const ADMIN_CARD_CLASS: &str = "bg-paper-entry rounded-xl border border-paper-border"; -/// Admin 表格容器:在卡片基础上加 `overflow-hidden`,圆角裁剪表格。 -pub const ADMIN_TABLE_CLASS: &str = - "bg-paper-entry rounded-xl border border-paper-border overflow-hidden"; +/// Admin 表格容器:白底圆角描边,亮/暗双模式。 +/// +/// 不加 `overflow-hidden`:它会裁掉表格行内按钮的 tooltip 等溢出内容。 +/// 圆角裁剪由 `` 的 `rounded-xl` + 行 hover 背景与容器同色 +/// (`bg-paper-entry`) 自然收敛,去掉后视觉无差异。 +pub const ADMIN_TABLE_CLASS: &str = "bg-paper-entry rounded-xl border border-paper-border"; /// Admin 表格行 hover 态:底部分割线 + 悬停背景。 pub const ADMIN_ROW_HOVER: &str =