Commit 1972c70 1 parent 4801b7b commit 1972c70 Copy full SHA for 1972c70
File tree 3 files changed +15
-10
lines changed
BootstrapBlazor/Components/Layout
BootstrapBlazor.Shared/Components/Samples
3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 40
40
Introduction =" @Localizer[" LayoutsUpAndDownIntro " ]"
41
41
Name =" UpAndDown" >
42
42
<div class =" layout-demo" >
43
- <Layout ShowFooter =" true" >
43
+ <Layout ShowFooter =" true" AdditionalAssemblies = " [typeof(MainLayout).Assembly] " >
44
44
<Header >
45
45
<div >Header</div >
46
46
</Header >
58
58
Introduction =" @Localizer[" LayoutsMiddleLeftRightIntro " ]"
59
59
Name =" MiddleLeftRight" >
60
60
<div class =" layout-demo" >
61
- <Layout ShowFooter =" true" >
61
+ <Layout ShowFooter =" true" AdditionalAssemblies = " [typeof(MainLayout).Assembly] " >
62
62
<Header >
63
63
<div >Header</div >
64
64
</Header >
79
79
Introduction =" @Localizer[" LayoutsLeftRightIntro " ]"
80
80
Name =" LeftRight" >
81
81
<div class =" layout-demo" >
82
- <Layout ShowFooter =" true" IsFullSide =" true" >
82
+ <Layout ShowFooter =" true" IsFullSide =" true" AdditionalAssemblies = " [typeof(MainLayout).Assembly] " >
83
83
<Header >
84
84
<div >Header</div >
85
85
</Header >
100
100
Introduction =" @Localizer[" LayoutsCustomPercentIntro " ]"
101
101
Name =" CustomPercent" >
102
102
<div class =" layout-demo" >
103
- <Layout ShowFooter =" true" SideWidth =" 200" >
103
+ <Layout ShowFooter =" true" SideWidth =" 200" AdditionalAssemblies = " [typeof(MainLayout).Assembly] " >
104
104
<Header >
105
105
<div >Header</div >
106
106
</Header >
140
140
@( (MarkupString )Localizer [" LayoutsAppTips7" ].Value )
141
141
</Tips >
142
142
<div class =" layout-demo1" >
143
- <Layout ShowFooter =" true" SideWidth =" 160px" Menus =" IconSideMenuItems1" >
143
+ <Layout ShowFooter =" true" SideWidth =" 160px" Menus =" IconSideMenuItems1" AdditionalAssemblies = " [typeof(MainLayout).Assembly] " >
144
144
<Header >
145
145
<div >Header</div >
146
146
</Header >
158
158
@Localizer ["LayoutsAppTips8"]
159
159
</p >
160
160
<div class =" layout-demo2" >
161
- <Layout ShowFooter =" true" SideWidth =" 160px" Menus =" IconSideMenuItems2" >
161
+ <Layout ShowFooter =" true" SideWidth =" 160px" Menus =" IconSideMenuItems2" AdditionalAssemblies = " [typeof(MainLayout).Assembly] " >
162
162
<Header >
163
163
<div >Header</div >
164
164
</Header >
Original file line number Diff line number Diff line change 29
29
}
30
30
@if (Menus != null )
31
31
{
32
- @RenderMenu(IsFullSide)
32
+ @RenderMenu
33
33
}
34
34
</aside >
35
35
<section class =" layout-right" >
58
58
}
59
59
@if (Menus != null )
60
60
{
61
- @RenderMenu(IsFullSide)
61
+ @RenderMenu
62
62
}
63
63
</aside >
64
64
@RenderMain
100
100
@Header
101
101
< / header > ;
102
102
103
- RenderFragment < bool > RenderMenu => hasScroll =>
103
+ RenderFragment RenderMenu =>
104
104
@< div class = " layout-menu" >
105
- @if (hasScroll )
105
+ @if (IsFixedTabHeader || IsFullSide )
106
106
{
107
107
< Scroll >
108
108
< Menu Items = " @Menus" IsVertical = " true" IsAccordion = " @IsAccordion" OnClick = " ClickMenu" >< / Menu >
Original file line number Diff line number Diff line change 233
233
}
234
234
235
235
& .is-fixed-tab {
236
+ .layout-menu ,
236
237
.tabs {
237
238
height : calc (var (--bb-layout-height ) - var (--bb-layout-header-height ) - var (--bb-layout-footer-height ));
238
239
278
279
top : 0 ;
279
280
height : var (--bb-layout-height );
280
281
}
282
+
283
+ .layout-menu {
284
+ height : calc (var (--bb-layout-height ) - var (--bb-layout-header-height ));
285
+ }
281
286
}
282
287
}
283
288
You can’t perform that action at this time.
0 commit comments