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
41
41
42
42
private string ? StyleString => CssBuilder . Default ( "position: sticky;" )
43
43
. AddStyle ( "z-index" , $ "{ ZIndex } ", ZIndex . HasValue )
44
- . AddStyle ( $ " { Position . ToDescriptionString ( ) } " , $ "{ Offset } px")
44
+ . AddStyle ( Position . ToDescriptionString ( ) , $ "{ Offset } px")
45
45
. AddStyleFromAttributes ( AdditionalAttributes )
46
46
. Build ( ) ;
47
47
}
Original file line number Diff line number Diff line change @@ -19,16 +19,16 @@ public partial class Drawer
19
19
. Build ( ) ;
20
20
21
21
private string ? StyleString => CssBuilder . Default ( )
22
- . AddStyle ( "--bb-drawer-position" , $ " { Position } " , ! string . IsNullOrEmpty ( Position ) )
22
+ . AddStyle ( "--bb-drawer-position" , Position )
23
23
. AddStyleFromAttributes ( AdditionalAttributes )
24
24
. Build ( ) ;
25
25
26
26
/// <summary>
27
27
/// 获得 抽屉 Style 字符串
28
28
/// </summary>
29
29
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 )
32
32
. Build ( ) ;
33
33
34
34
/// <summary>
You can’t perform that action at this time.
0 commit comments