Skip to content

Commit

Permalink
added stack stretch
Browse files Browse the repository at this point in the history
  • Loading branch information
ronimizy committed Dec 29, 2024
1 parent 7e5bce0 commit 46c52dc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Phazor.Components/Components/Stacks/PhazorHStack.razor
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
VerticalAlignment.Top => "phazor-stack-align-start",
VerticalAlignment.Center => "phazor-stack-align-center",
VerticalAlignment.Bottom => "phazor-stack-align-end",
VerticalAlignment.Stretch => "phazor-stack-align-stretch",
_ => null,
})
.AddWhenNotNull(Variant switch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@
&.phazor-stack-align-end {
align-items: end;
}

&.phazor-stack-align-stretch {
align-items: stretch;
}
}
1 change: 1 addition & 0 deletions src/Phazor.Components/Components/Stacks/PhazorVStack.razor
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
HorizontalAlignment.Left => "phazor-stack-align-start",
HorizontalAlignment.Center => "phazor-stack-align-center",
HorizontalAlignment.Right => "phazor-stack-align-end",
HorizontalAlignment.Stretch => "phazor-stack-align-stretch",
_ => null,
})
.AddWhenNotNull(Variant switch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@
&.phazor-stack-align-end {
align-items: end;
}

&.phazor-stack-align-stretch {
align-items: stretch;
}
}
1 change: 1 addition & 0 deletions src/Phazor.Components/Models/HorizontalAlignment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ public enum HorizontalAlignment
Left,
Center,
Right,
Stretch,
}
1 change: 1 addition & 0 deletions src/Phazor.Components/Models/VerticalAlignment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ public enum VerticalAlignment
Top,
Center,
Bottom,
Stretch,
}

0 comments on commit 46c52dc

Please sign in to comment.