gpui: Add justify_evenly to Styled (#41262)

Release Notes:
- gpui: Add `justify_evenly()` to `Styled`.
This commit is contained in:
Paul Xu
2025-10-29 12:56:53 -04:00
committed by GitHub
parent 4bd4d76276
commit 02f5a514ce
+10
View File
@@ -308,6 +308,16 @@ pub trait Styled: Sized {
self
}
/// Sets the element to justify items along the container's main axis such
/// that there is an equal amount of space around each item, but also
/// accounting for the doubling of space you would normally see between
/// each item when using justify-around.
/// [Docs](https://tailwindcss.com/docs/justify-content#space-evenly)
fn justify_evenly(mut self) -> Self {
self.style().justify_content = Some(JustifyContent::SpaceEvenly);
self
}
/// Sets the element to pack content items in their default position as if no align-content value was set.
/// [Docs](https://tailwindcss.com/docs/align-content#normal)
fn content_normal(mut self) -> Self {