Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
beyaz committed Oct 20, 2024
1 parent 0730225 commit 01eeafa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ReactWithDotNet/Mixin.1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -663,21 +663,21 @@ public static HtmlElementModifier OnKeyDown(KeyboardEventHandler onKeyDownHandle
/// <summary>
/// Creates new div element wihth given width
/// </summary>
public static Element SpaceX(double widthInPx) => new div { style = { width = widthInPx.AsPixel() } };
public static Element SpaceX(CssUnit width) => new div { style = { Width(width) } };

/// <summary>
/// Creates new div element wihth given height
/// </summary>
public static Element SpaceY(double heightInPx) => new div { style = { height = heightInPx.AsPixel() } };
public static Element SpaceY(CssUnit height) => new div { style = { Height(height) } };

/// <summary>
/// Creates new div element wihth given height
/// </summary>
public static Element SpaceY(double heightInPx, params (Func<StyleModifier[], StyleModifier> breakpoint, double heightInPxOnBreakpointMatched)[] breakpoints)
public static Element SpaceY(CssUnit height, params (Func<StyleModifier[], StyleModifier> breakpoint, CssUnit heightOnBreakpointMatched)[] breakpoints)
{
var newDiv = new div
{
Height(heightInPx)
Height(height)
};

if (breakpoints is not null)
Expand All @@ -694,11 +694,11 @@ public static Element SpaceY(double heightInPx, params (Func<StyleModifier[], St
/// <summary>
/// Creates new div element wihth given width
/// </summary>
public static Element SpaceX(double widthInPx, params (Func<StyleModifier[], StyleModifier> breakpoint, double widthtInPxOnBreakpointMatched)[] breakpoints)
public static Element SpaceX(CssUnit width, params (Func<StyleModifier[], StyleModifier> breakpoint, CssUnit widthtOnBreakpointMatched)[] breakpoints)
{
var newDiv = new div
{
Width(widthInPx)
Width(width)
};

if (breakpoints is not null)
Expand Down

0 comments on commit 01eeafa

Please sign in to comment.