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
This commit is contained in:
parent
744891f15f
commit
a95fb8f1f9
1 changed files with 4 additions and 2 deletions
|
@ -146,9 +146,9 @@ impl Render for SshPrompt {
|
||||||
.justify_center()
|
.justify_center()
|
||||||
.child(
|
.child(
|
||||||
h_flex()
|
h_flex()
|
||||||
.py_2()
|
.p_2()
|
||||||
.px_4()
|
|
||||||
.justify_center()
|
.justify_center()
|
||||||
|
.flex_wrap()
|
||||||
.child(if self.error_message.is_some() {
|
.child(if self.error_message.is_some() {
|
||||||
Icon::new(IconName::XCircle)
|
Icon::new(IconName::XCircle)
|
||||||
.size(IconSize::Medium)
|
.size(IconSize::Medium)
|
||||||
|
@ -173,6 +173,8 @@ impl Render for SshPrompt {
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
div()
|
div()
|
||||||
|
.text_ellipsis()
|
||||||
|
.overflow_x_hidden()
|
||||||
.when_some(self.error_message.as_ref(), |el, error| {
|
.when_some(self.error_message.as_ref(), |el, error| {
|
||||||
el.child(Label::new(format!("-{}", error)).size(LabelSize::Small))
|
el.child(Label::new(format!("-{}", error)).size(LabelSize::Small))
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue