File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/BootstrapBlazor/Components Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public partial class Affix
4141
4242 private string ? StyleString => CssBuilder . Default ( "position: sticky;" )
4343 . AddStyle ( "z-index" , $ "{ ZIndex } ", ZIndex . HasValue )
44- . AddStyle ( $ " { Position . ToDescriptionString ( ) } " , $ "{ Offset } px")
44+ . AddStyle ( Position . ToDescriptionString ( ) , $ "{ Offset } px")
4545 . AddStyleFromAttributes ( AdditionalAttributes )
4646 . Build ( ) ;
4747}
Original file line number Diff line number Diff line change @@ -19,16 +19,16 @@ public partial class Drawer
1919 . Build ( ) ;
2020
2121 private string ? StyleString => CssBuilder . Default ( )
22- . AddStyle ( "--bb-drawer-position" , $ " { Position } " , ! string . IsNullOrEmpty ( Position ) )
22+ . AddStyle ( "--bb-drawer-position" , Position )
2323 . AddStyleFromAttributes ( AdditionalAttributes )
2424 . Build ( ) ;
2525
2626 /// <summary>
2727 /// 获得 抽屉 Style 字符串
2828 /// </summary>
2929 private string ? DrawerStyleString => CssBuilder . Default ( )
30- . AddStyle ( "--bb-drawer-width" , $ " { Width } " , ! string . IsNullOrEmpty ( Width ) && Placement != Placement . Top && Placement != Placement . Bottom )
31- . AddStyle ( "--bb-drawer-height" , $ " { Height } " , ! string . IsNullOrEmpty ( Height ) && ( Placement == Placement . Top || Placement == Placement . Bottom ) )
30+ . AddStyle ( "--bb-drawer-width" , Width , Placement != Placement . Top && Placement != Placement . Bottom )
31+ . AddStyle ( "--bb-drawer-height" , Height , Placement == Placement . Top || Placement == Placement . Bottom )
3232 . Build ( ) ;
3333
3434 /// <summary>
You can’t perform that action at this time.
0 commit comments