Skip to content

Commit

Permalink
chore(components): update orientation styles of the divider
Browse files Browse the repository at this point in the history
  • Loading branch information
desmondinho committed May 21, 2024
1 parent 90ecca3 commit 6106985
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/LumexUI/Styles/Divider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ internal readonly record struct Divider
.Add( "border-none" )
.ToString();

private static string GetOrientationStyles( Orientation orientation ) => orientation switch
private static ElementClass GetOrientationStyles( Orientation orientation )
{
Orientation.Horizontal => "w-full h-px",
Orientation.Vertical => "h-full w-px",
_ => throw new NotImplementedException()
};
return ElementClass.Empty()
.Add( "w-full h-px", when: orientation is Orientation.Horizontal )
.Add( "h-full w-px", when: orientation is Orientation.Vertical );
}

public static string GetStyles( LumexDivider divider )
{
Expand Down

0 comments on commit 6106985

Please sign in to comment.