Prevent long extension descriptions from overflowing (#9348)
This PR fixes an issue where long extension descriptions could take up more room than intended, pushing the GitHub repository icon off the screen. <img width="901" alt="Screenshot 2024-03-14 at 12 54 14 PM" src="https://github.com/zed-industries/zed/assets/1486634/befce468-f8df-4183-b3cc-9d088dd53b4e"> 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)).
This commit is contained in:
parent
3610b076a0
commit
a183c33367
1 changed files with 6 additions and 3 deletions
|
@ -391,11 +391,14 @@ impl ExtensionsPage {
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
h_flex()
|
h_flex()
|
||||||
|
.gap_2()
|
||||||
.justify_between()
|
.justify_between()
|
||||||
.children(extension.description.as_ref().map(|description| {
|
.children(extension.description.as_ref().map(|description| {
|
||||||
Label::new(description.clone())
|
h_flex().overflow_x_hidden().child(
|
||||||
.size(LabelSize::Small)
|
Label::new(description.clone())
|
||||||
.color(Color::Default)
|
.size(LabelSize::Small)
|
||||||
|
.color(Color::Default),
|
||||||
|
)
|
||||||
}))
|
}))
|
||||||
.child(
|
.child(
|
||||||
IconButton::new(
|
IconButton::new(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue