Rename h_stack
and v_stack
to h_flex
and v_flex
, respectively (#4053)
This PR renames the `h_stack` and `v_stack` to `h_flex` and `v_flex`, respectively. We were previously using `h_stack` and `v_stack` to match SwiftUI, but `h_flex` and `v_flex` fit better with the web/flexbox terminology that the rest of GPUI uses. Additionally, we were already calling the utility functions used to implement `h_stack` and `v_stack` by the new names. Release Notes: - N/A
This commit is contained in:
parent
b136d21ebf
commit
90f4c70a82
69 changed files with 271 additions and 271 deletions
|
@ -255,8 +255,8 @@ impl Story {
|
|||
.child(label.into())
|
||||
}
|
||||
|
||||
/// Note: Not ui::v_stack() as the story crate doesn't depend on the ui crate.
|
||||
pub fn v_stack() -> Div {
|
||||
/// Note: Not `ui::v_flex` as the `story` crate doesn't depend on the `ui` crate.
|
||||
pub fn v_flex() -> Div {
|
||||
div().flex().flex_col().gap_1()
|
||||
}
|
||||
}
|
||||
|
@ -298,7 +298,7 @@ impl RenderOnce for StoryItem {
|
|||
.gap_4()
|
||||
.w_full()
|
||||
.child(
|
||||
Story::v_stack()
|
||||
Story::v_flex()
|
||||
.px_2()
|
||||
.w_1_2()
|
||||
.min_h_px()
|
||||
|
@ -319,7 +319,7 @@ impl RenderOnce for StoryItem {
|
|||
}),
|
||||
)
|
||||
.child(
|
||||
Story::v_stack()
|
||||
Story::v_flex()
|
||||
.px_2()
|
||||
.flex_none()
|
||||
.w_1_2()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue