Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

extensions_ui: Prevent extension tags from overlapping actions (#63153)

Josh Kent1747596aa011
diff --git a/crates/extensions_ui/src/components/extension_card.rs b/crates/extensions_ui/src/components/extension_card.rs
index 282dbd6677b..ce74c0cc888 100644
--- a/crates/extensions_ui/src/components/extension_card.rs
+++ b/crates/extensions_ui/src/components/extension_card.rs
@@ -635,10 +635,14 @@ impl RenderOnce for ExtensionCard {
.rounded_md()
.child(
h_flex()
+ .gap_2()
.justify_between()
.child(
h_flex()
.flex_shrink_1()
+ .min_w_0()
+ .overflow_hidden()
+ .whitespace_nowrap()
.gap_2()
.child(Headline::new(name).size(HeadlineSize::Small))
.child(
@@ -662,7 +666,12 @@ impl RenderOnce for ExtensionCard {
)
}),
)
- .child(h_flex().gap_1().children(actions.into_iter().flatten())),
+ .child(
+ h_flex()
+ .flex_shrink_0()
+ .gap_1()
+ .children(actions.into_iter().flatten()),
+ ),
)
.child(
h_flex()