Start sketching a collab panel in storybook

Co-Authored-By: Nate Butler <nate@zed.dev>
This commit is contained in:
Nathan Sobo 2023-09-05 10:02:36 -06:00
parent 2fa9c037c8
commit 0307cb8a88
4 changed files with 83 additions and 3 deletions

View file

@ -359,6 +359,46 @@ pub trait StyleHelpers: Styleable<Style = Style> {
self
}
fn justify_between(mut self) -> Self
where
Self: Sized,
{
self.declared_style().justify_content = Some(JustifyContent::SpaceBetween);
self
}
fn justify_center(mut self) -> Self
where
Self: Sized,
{
self.declared_style().justify_content = Some(JustifyContent::Center);
self
}
fn justify_start(mut self) -> Self
where
Self: Sized,
{
self.declared_style().justify_content = Some(JustifyContent::Start);
self
}
fn justify_end(mut self) -> Self
where
Self: Sized,
{
self.declared_style().justify_content = Some(JustifyContent::End);
self
}
fn justify_around(mut self) -> Self
where
Self: Sized,
{
self.declared_style().justify_content = Some(JustifyContent::SpaceAround);
self
}
fn fill<F>(mut self, fill: F) -> Self
where
F: Into<Fill>,