From 75f088b9753c2a617c7993beb3b7a02b0320b092 Mon Sep 17 00:00:00 2001 From: Cccc_ Date: Sun, 4 Jan 2026 12:50:53 +0800 Subject: [PATCH] fix(style): center align Ant Design tooltip text for better visibility --- frontend/src/style.css | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/frontend/src/style.css b/frontend/src/style.css index ae1a5ff..2c08bb5 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -1147,9 +1147,20 @@ } /* Ant Design Tooltip 文本居中 */ - .ant-tooltip .ant-tooltip-inner, - div.ant-tooltip-inner { - text-align: center !important; + + /* 针对 Ant Design Vue 4.x 的 tooltip */ + .ant-tooltip .ant-tooltip-inner { + display: flex !important; + align-items: center !important; + justify-content: center !important; + } + + /* 更高优先级的选择器 */ + div[class*="ant-tooltip"] .ant-tooltip-inner, + div[class^="ant-tooltip"] div[class*="tooltip-inner"] { + display: flex !important; + align-items: center !important; + justify-content: center !important; } }