Skip to content

Commit 85e95a2

Browse files
danilo-lealnoaccOS
authored andcommitted
ssh: Fix text wrapping in loading text (zed-industries#18876)
This PR adds `flex_wrap` to the loading text container to prevent the loading modal layout to break. Release Notes: - N/A
1 parent 17eb643 commit 85e95a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/recent_projects/src/ssh_connections.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ impl Render for SshPrompt {
146146
.justify_center()
147147
.child(
148148
h_flex()
149-
.py_2()
150-
.px_4()
149+
.p_2()
151150
.justify_center()
151+
.flex_wrap()
152152
.child(if self.error_message.is_some() {
153153
Icon::new(IconName::XCircle)
154154
.size(IconSize::Medium)
@@ -173,6 +173,8 @@ impl Render for SshPrompt {
173173
)
174174
.child(
175175
div()
176+
.text_ellipsis()
177+
.overflow_x_hidden()
176178
.when_some(self.error_message.as_ref(), |el, error| {
177179
el.child(Label::new(format!("-{}", error)).size(LabelSize::Small))
178180
})

0 commit comments

Comments
 (0)