Skip to content

Commit ab9925e

Browse files
YomodoJeffrey Janglimckaragoz
authored
Fix css/height (#302)
Co-authored-by: Jeffrey Jangli <Jeffrey.Jangli@kpn.com> Co-authored-by: Mehmet Can Karagöz <78308169+mckaragoz@users.noreply.github.com>
1 parent 59d73c1 commit ab9925e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CodeBeam.MudBlazor.Extensions/Components/Splitter/MudSplitter.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
}
3131
3232
.mud-splitter-content-@_styleGuid {
33-
@($"height:{EffectiveHeight}")
33+
@EffectiveHeight
3434
}
3535
</style>

CodeBeam.MudBlazor.Extensions/Components/Splitter/MudSplitter.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public partial class MudSplitter : MudComponentBase
140140

141141
string EffectiveStartStyle { get { return !string.IsNullOrWhiteSpace(StartContentStyle) ? StartContentStyle : !string.IsNullOrWhiteSpace(ContentStyle) ? ContentStyle : StyleContent; } }
142142
string EffectiveEndStyle { get { return !string.IsNullOrWhiteSpace(EndContentStyle) ? EndContentStyle : !string.IsNullOrWhiteSpace(ContentStyle) ? ContentStyle : StyleContent; } }
143-
string EffectiveHeight { get { return $"height:{(!string.IsNullOrWhiteSpace(Height) ? Height : null)} !important;"; } }
143+
string EffectiveHeight { get { return !string.IsNullOrWhiteSpace(Height) ? $"height:{Height} !important;" : null; } }
144144
string EffectiveBarStyle { get { return !string.IsNullOrWhiteSpace(BarStyle) ? BarStyle : StyleBar; } }
145145
string EffectiveColor { get { return $"background-color:var(--mud-palette-{(Color == Color.Default ? "action-default" : Color.ToDescriptionString())}) !important;"; } }
146146

0 commit comments

Comments
 (0)