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();
|
let mut bar = Vec::new();
|
||||||
if let Some(error) = self.error.as_ref() {
|
if let Some(error) = self.error.as_ref() {
|
||||||
bar.push(
|
bar.push(widget::text(error).style(widget::text::danger).boxed());
|
||||||
widget::container(widget::text(error).style(widget::text::danger))
|
|
||||||
.align_x(Alignment::Start)
|
|
||||||
.width(Length::Fill)
|
|
||||||
.boxed(),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
if self.infobar_shown && self.info.is_some() {
|
if self.infobar_shown && self.info.is_some() {
|
||||||
bar.push(
|
bar.push(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue