Skip to content

Commit

Permalink
ssh: Fix text wrapping in loading text (#18876)
Browse files Browse the repository at this point in the history
This PR adds `flex_wrap` to the loading text container to prevent the
loading modal layout to break.

Release Notes:

- N/A
  • Loading branch information
danilo-leal authored Oct 8, 2024
1 parent 744891f commit a95fb8f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/recent_projects/src/ssh_connections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ impl Render for SshPrompt {
.justify_center()
.child(
h_flex()
.py_2()
.px_4()
.p_2()
.justify_center()
.flex_wrap()
.child(if self.error_message.is_some() {
Icon::new(IconName::XCircle)
.size(IconSize::Medium)
Expand All @@ -173,6 +173,8 @@ impl Render for SshPrompt {
)
.child(
div()
.text_ellipsis()
.overflow_x_hidden()
.when_some(self.error_message.as_ref(), |el, error| {
el.child(Label::new(format!("-{}", error)).size(LabelSize::Small))
})
Expand Down

0 comments on commit a95fb8f

Please sign in to comment.