diff --git a/src/main.rs b/src/main.rs index 76ee91a..54c2b3c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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), ); }