From c135d7e5995765a816f2ba19647f8ab65bbbafea Mon Sep 17 00:00:00 2001 From: GouJ Date: Mon, 14 Sep 2026 18:15:43 +0800 Subject: [PATCH] fix: center a fixed 10px active indicator under workspace tabs --- src/styles/admin.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/styles/admin.css b/src/styles/admin.css index bc62d77..97173e5 100644 --- a/src/styles/admin.css +++ b/src/styles/admin.css @@ -223,6 +223,20 @@ body { .workspace-tabs.n-tabs .n-tabs-nav .n-tabs-tab-pad { width: 0; } +/* 保留组件的定位与切换动画,仅在活动指示器中央绘制 10px 短线。 */ +.workspace-tabs.n-tabs .n-tabs-nav .n-tabs-bar { + background: transparent; +} +.workspace-tabs.n-tabs .n-tabs-nav .n-tabs-bar::after { + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 50%; + width: 10px; + transform: translateX(-50%); + background: var(--n-bar-color); +} .workspace-tabs .n-tabs-nav-scroll-wrapper { min-width: 0; }