fix: center a fixed 10px active indicator under workspace tabs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user