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.

ssh: Fix text wrapping in loading text (#18876)

Danilo Leala95fb8f1f9cd
diff --git a/crates/recent_projects/src/ssh_connections.rs b/crates/recent_projects/src/ssh_connections.rs
index 2e41d564686..ebac54385d2 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))
})