fix: layout fixes for nav bar
This commit is contained in:
parent
c571a289b4
commit
e778782328
4 changed files with 11 additions and 7 deletions
|
|
@ -449,7 +449,10 @@ where
|
|||
nav = nav.max_width(300);
|
||||
}
|
||||
|
||||
Some(Element::from(nav))
|
||||
Some(Element::from(
|
||||
// XXX both must be shrink to avoid flex layout from ignoring it
|
||||
nav.width(iced::Length::Shrink).height(iced::Length::Shrink),
|
||||
))
|
||||
}
|
||||
|
||||
/// Allows COSMIC to integrate with your application's [`nav_bar::Model`].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue