Skip to content

Commit 195c0ab

Browse files
authored
feat(Layout): update style for IsFixedTabHeader (#4731)
* style: 移除重复样式 * refactor: 更新固定标签页表头样式 * chore: bump version 9.0.2-beta02
1 parent 333dd4d commit 195c0ab

File tree

2 files changed

+5
-21
lines changed

2 files changed

+5
-21
lines changed

src/BootstrapBlazor/BootstrapBlazor.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.0.2-beta01</Version>
4+
<Version>9.0.2-beta02</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

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

+4-20
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,6 @@
132132

133133
.tabs.tabs-border-card {
134134
box-shadow: none;
135-
margin: -1rem;
136-
border: none;
137-
border-radius: unset;
138-
min-height: calc(100% + 2rem);
139135
}
140136
}
141137

@@ -237,22 +233,10 @@
237233
}
238234

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

0 commit comments

Comments
 (0)