From a183c33367d24aa4e7052301c182146c79eb7c0b Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 14 Mar 2024 13:06:42 -0400 Subject: [PATCH] Prevent long extension descriptions from overflowing (#9348) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR fixes an issue where long extension descriptions could take up more room than intended, pushing the GitHub repository icon off the screen. Screenshot 2024-03-14 at 12 54 14 PM Fixes #9331. Release Notes: - Fixed an issue where long extension descriptions could push the GitHub repository icon off the screen ([#9331](https://github.com/zed-industries/zed/issues/9331)). --- crates/extensions_ui/src/extensions_ui.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/extensions_ui/src/extensions_ui.rs b/crates/extensions_ui/src/extensions_ui.rs index 85628598003b3a7f947f7f231b4a93f9ddeaa06d..e9828446b5fd580fcd55bbdd55099935872bf41f 100644 --- a/crates/extensions_ui/src/extensions_ui.rs +++ b/crates/extensions_ui/src/extensions_ui.rs @@ -391,11 +391,14 @@ impl ExtensionsPage { ) .child( h_flex() + .gap_2() .justify_between() .children(extension.description.as_ref().map(|description| { - Label::new(description.clone()) - .size(LabelSize::Small) - .color(Color::Default) + h_flex().overflow_x_hidden().child( + Label::new(description.clone()) + .size(LabelSize::Small) + .color(Color::Default), + ) })) .child( IconButton::new(