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
|
@ -57,7 +57,7 @@ impl CopilotCodeVerification {
|
|||
.read_from_clipboard()
|
||||
.map(|item| item.text() == &data.user_code)
|
||||
.unwrap_or(false);
|
||||
h_stack()
|
||||
h_flex()
|
||||
.w_full()
|
||||
.p_1()
|
||||
.border()
|
||||
|
@ -90,7 +90,7 @@ impl CopilotCodeVerification {
|
|||
} else {
|
||||
"Connect to Github"
|
||||
};
|
||||
v_stack()
|
||||
v_flex()
|
||||
.flex_1()
|
||||
.gap_2()
|
||||
.items_center()
|
||||
|
@ -118,7 +118,7 @@ impl CopilotCodeVerification {
|
|||
)
|
||||
}
|
||||
fn render_enabled_modal(cx: &mut ViewContext<Self>) -> impl Element {
|
||||
v_stack()
|
||||
v_flex()
|
||||
.gap_2()
|
||||
.child(Headline::new("Copilot Enabled!").size(HeadlineSize::Large))
|
||||
.child(Label::new(
|
||||
|
@ -132,7 +132,7 @@ impl CopilotCodeVerification {
|
|||
}
|
||||
|
||||
fn render_unauthorized_modal() -> impl Element {
|
||||
v_stack()
|
||||
v_flex()
|
||||
.child(Headline::new("You must have an active GitHub Copilot subscription.").size(HeadlineSize::Large))
|
||||
|
||||
.child(Label::new(
|
||||
|
@ -163,7 +163,7 @@ impl Render for CopilotCodeVerification {
|
|||
_ => div().into_any_element(),
|
||||
};
|
||||
|
||||
v_stack()
|
||||
v_flex()
|
||||
.id("copilot code verification")
|
||||
.elevation_3(cx)
|
||||
.w_96()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue