Fix background of tabs

This commit is contained in:
Jeremy Soller 2023-12-21 12:05:05 -07:00
parent 2193003ada
commit 9783dd4e55

View file

@ -244,12 +244,16 @@ impl cosmic::Application for App {
if self.tab_model.iter().count() > 1 {
tab_column = tab_column.push(
widget::view_switcher::horizontal(&self.tab_model)
.button_height(32)
.button_spacing(space_xxs)
.on_activate(Message::TabActivate)
.on_close(Message::TabClose)
.width(Length::Shrink),
widget::container(row![
widget::view_switcher::horizontal(&self.tab_model)
.button_height(32)
.button_spacing(space_xxs)
.on_activate(Message::TabActivate)
.on_close(Message::TabClose)
.width(Length::Shrink),
widget::horizontal_space(Length::Fill)
])
.style(style::Container::Background),
);
}