feat: improve infobar display
this makes WAY more sense: now the error and status don't take up a fixed 1/2 space and wrap, but instead they take space from each other as needed.
This commit is contained in:
parent
903dd4994c
commit
88e0086db3
1 changed files with 1 additions and 6 deletions
|
|
@ -87,12 +87,7 @@ impl State {
|
|||
|
||||
let mut bar = Vec::new();
|
||||
if let Some(error) = self.error.as_ref() {
|
||||
bar.push(
|
||||
widget::container(widget::text(error).style(widget::text::danger))
|
||||
.align_x(Alignment::Start)
|
||||
.width(Length::Fill)
|
||||
.boxed(),
|
||||
);
|
||||
bar.push(widget::text(error).style(widget::text::danger).boxed());
|
||||
}
|
||||
if self.infobar_shown && self.info.is_some() {
|
||||
bar.push(
|
||||
|
|
|
|||
Loading…
Reference in a new issue