Skip to content

Commit f0e57f4

Browse files
committed
refactor: 更新固定标签页表头样式
1 parent 13b0564 commit f0e57f4

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

src/BootstrapBlazor/Components/Layout/Layout.razor.scss

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -233,22 +233,10 @@
233233
}
234234

235235
&.is-fixed-tab {
236-
.layout-main {
237-
height: calc(var(--bb-layout-height) - var(--bb-layout-header-height) - var(--bb-layout-footer-height));
238-
}
239-
240-
.tabs-body {
241-
height: calc(100% - var(--bb-tabs-item-height));
242-
overflow: auto;
243-
244-
.tabs-body-content {
245-
height: auto;
246-
min-height: 100%;
247-
}
248-
}
249-
250-
&:not(.has-footer) {
251-
--bb-layout-footer-height: 0;
236+
.tabs-header {
237+
position: sticky;
238+
top: var(--bb-layout-header-height);
239+
z-index: 5;
252240
}
253241
}
254242
}

0 commit comments

Comments
 (0)