From a95fb8f1f9cd8c9761fc638c4ff2552e2f3f973a Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Tue, 8 Oct 2024 23:37:04 +0200 Subject: [PATCH] ssh: Fix text wrapping in loading text (#18876) This PR adds `flex_wrap` to the loading text container to prevent the loading modal layout to break. Release Notes: - N/A --- crates/recent_projects/src/ssh_connections.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/recent_projects/src/ssh_connections.rs b/crates/recent_projects/src/ssh_connections.rs index 2e41d56468682ed7c6fe93ed4715bdf8f4100502..ebac54385d2963ec5257a74f3aa44560d211da29 100644 --- a/crates/recent_projects/src/ssh_connections.rs +++ b/crates/recent_projects/src/ssh_connections.rs @@ -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) @@ -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)) })