remote: Polish for connection progress & error dialogs (#19379)
Before/after:   Before/after (I feel like text-wrapping would be more useful than text-ellipsis here, but I don't see any wrap function):   Before/after:   Release Notes: - N/A
This commit is contained in:
parent
34b8655bf6
commit
2db9090a2f
2 changed files with 10 additions and 6 deletions
|
@ -175,7 +175,7 @@ impl Render for SshPrompt {
|
|||
.child(
|
||||
h_flex()
|
||||
.p_2()
|
||||
.flex_wrap()
|
||||
.flex()
|
||||
.child(if self.error_message.is_some() {
|
||||
Icon::new(IconName::XCircle)
|
||||
.size(IconSize::Medium)
|
||||
|
@ -195,6 +195,7 @@ impl Render for SshPrompt {
|
|||
})
|
||||
.child(
|
||||
div()
|
||||
.ml_1()
|
||||
.text_ellipsis()
|
||||
.overflow_x_hidden()
|
||||
.when_some(self.error_message.as_ref(), |el, error| {
|
||||
|
@ -205,7 +206,7 @@ impl Render for SshPrompt {
|
|||
|el| {
|
||||
el.child(
|
||||
Label::new(format!(
|
||||
"-{}…",
|
||||
"{}…",
|
||||
self.status_message.clone().unwrap()
|
||||
))
|
||||
.size(LabelSize::Small),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue