Skip to content

Commit 4801b7b

Browse files
authored
feat(Layout): update IsFixedTab style (#4801)
* refactor: 移除 100% 样式 * refactor: 更新 Layout 样式 * doc: 更新 Menu 组件
1 parent f0302ee commit 4801b7b

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

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

+7-4
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,13 @@
233233
}
234234

235235
&.is-fixed-tab {
236-
.tabs-header {
237-
position: sticky;
238-
top: var(--bb-layout-header-height);
239-
z-index: 5;
236+
.tabs {
237+
height: calc(var(--bb-layout-height) - var(--bb-layout-header-height) - var(--bb-layout-footer-height));
238+
239+
.tabs-body {
240+
height: calc(100% - var(--bb-tabs-item-height));
241+
overflow: auto;
242+
}
240243
}
241244
}
242245
}

src/BootstrapBlazor/Components/Menu/Menu.razor

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<CascadingValue Value="this" IsFixed="true">
77
@if (IsVertical)
88
{
9-
<SideMenu Items="@Items" Id="@SideMenuId" class="@SideMenuClassString" OnClick="@OnClickMenu" IsScrollToView="@IsScrollIntoView" />
9+
<SideMenu Items="@Items" Id="@SideMenuId" class="@SideMenuClassString" OnClick="@OnClickMenu"></SideMenu>
1010
}
1111
else
1212
{
13-
<TopMenu Items="@Items" OnClick="@OnClickMenu" />
13+
<TopMenu Items="@Items" OnClick="@OnClickMenu"></TopMenu>
1414
}
1515
</CascadingValue>
1616
</nav>

src/BootstrapBlazor/Components/Tab/Tab.razor.scss

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
.tabs-body-content {
1717
background-color: var(--bs-body-bg);
18-
height: 100%;
1918

2019
&.bb-fs-open {
2120
padding: var(--bb-tabs-body-padding);

0 commit comments

Comments
 (0)