fix(navbar): fill height of panel instead of shrinking

This commit is contained in:
Alex Marín 2026-03-05 15:07:26 +01:00 committed by GitHub
parent ad65416551
commit 1810bedfa5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -385,9 +385,8 @@ where
.on_context(|id| crate::Action::Cosmic(Action::NavBarContext(id))) .on_context(|id| crate::Action::Cosmic(Action::NavBarContext(id)))
.context_menu(self.nav_context_menu(self.core().nav_bar_context())) .context_menu(self.nav_context_menu(self.core().nav_bar_context()))
.into_container() .into_container()
// XXX both must be shrink to avoid flex layout from ignoring it
.width(iced::Length::Shrink) .width(iced::Length::Shrink)
.height(iced::Length::Shrink); .height(iced::Length::Fill);
if !self.core().is_condensed() { if !self.core().is_condensed() {
nav = nav.max_width(280); nav = nav.max_width(280);