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:
electria 2026-10-31 18:07:56 -07:00
commit 88e0086db3
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -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(