Remove 2 suffix for ui, storybook, text
Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
0cf65223ce
commit
4305c5fdbe
142 changed files with 106 additions and 5018 deletions
10
crates/ui/src/fixed.rs
Normal file
10
crates/ui/src/fixed.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
use gpui::DefiniteLength;
|
||||
|
||||
/// A trait for elements that have a fixed with.
|
||||
pub trait FixedWidth {
|
||||
/// Sets the width of the element.
|
||||
fn width(self, width: DefiniteLength) -> Self;
|
||||
|
||||
/// Sets the element's width to the full width of its container.
|
||||
fn full_width(self) -> Self;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue