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:
Marshall Bowers
2024-01-15 11:34:06 -05:00
committed by GitHub
parent b136d21ebf
commit 90f4c70a82
69 changed files with 271 additions and 271 deletions
+5 -5
View File
@@ -422,7 +422,7 @@ impl Render for FeedbackModal {
let open_community_repo =
cx.listener(|_, _, cx| cx.dispatch_action(Box::new(OpenZedCommunityRepo)));
v_stack()
v_flex()
.elevation_3(cx)
.key_context("GiveFeedback")
.on_action(cx.listener(Self::cancel))
@@ -461,10 +461,10 @@ impl Render for FeedbackModal {
.child(self.feedback_editor.clone()),
)
.child(
v_stack()
v_flex()
.gap_1()
.child(
h_stack()
h_flex()
.bg(cx.theme().colors().editor_background)
.p_2()
.border()
@@ -483,7 +483,7 @@ impl Render for FeedbackModal {
),
)
.child(
h_stack()
h_flex()
.justify_between()
.gap_1()
.child(
@@ -495,7 +495,7 @@ impl Render for FeedbackModal {
.on_click(open_community_repo),
)
.child(
h_stack()
h_flex()
.gap_1()
.child(
Button::new("cancel_feedback", "Cancel")