diff --git a/src/main-window.ui b/src/main-window.ui index 0b42c6b..a31848a 100644 --- a/src/main-window.ui +++ b/src/main-window.ui @@ -4,7 +4,6 @@ - Roster 1200 800 @@ -96,12 +95,20 @@ - + False + - - horizontal - 0 + + automatic + never + true False + + + horizontal + 0 + + diff --git a/src/window.py b/src/window.py index 6176dc0..316fd53 100644 --- a/src/window.py +++ b/src/window.py @@ -44,6 +44,7 @@ class RosterWindow(Adw.ApplicationWindow): url_entry = Gtk.Template.Child() send_button = Gtk.Template.Child() new_request_button = Gtk.Template.Child() + tab_bar_scroll = Gtk.Template.Child() tab_bar_container = Gtk.Template.Child() # Panes @@ -426,7 +427,7 @@ class RosterWindow(Adw.ApplicationWindow): """Show/hide tab bar based on number of tabs.""" num_tabs = len(self.tab_manager.tabs) # Show tab bar only if we have 2 or more tabs - self.tab_bar_container.set_visible(num_tabs >= 2) + self.tab_bar_scroll.set_visible(num_tabs >= 2) # Update tab bar with buttons if num_tabs >= 2: