mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-11-30 02:58:37 +08:00
fix(Layout): can't collapse side when set side with value (#3977)
Co-authored-by: SamXMG <SamXMG@noreply.gitcode.com> Co-authored-by: Argo Zhang <argo@live.ca>
This commit is contained in:
parent
e2c60b7a9d
commit
656c028bd2
@ -252,7 +252,7 @@ public partial class Layout : IHandlerException
|
||||
/// 获得 侧边栏 Style 字符串
|
||||
/// </summary>
|
||||
private string? SideStyleString => CssBuilder.Default()
|
||||
.AddClass($"width: {SideWidth.ConvertToPercentString()}", !string.IsNullOrEmpty(SideWidth) && SideWidth != "0")
|
||||
.AddClass($"width: {SideWidth.ConvertToPercentString()}", !IsCollapsed && !string.IsNullOrEmpty(SideWidth) && SideWidth != "0")
|
||||
.Build();
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user