Expand headers area to show multiple rows

The headers scrolled window now fills available vertical space, allowing users to view and edit multiple headers simultaneously without scrolling.
This commit is contained in:
Pavel Baksy 2025-12-22 02:27:38 +01:00
parent b8bd4d7d9e
commit 0a236c6d4c

View File

@ -545,6 +545,8 @@ class RosterWindow(Adw.ApplicationWindow):
# Headers tab # Headers tab
headers_scroll = Gtk.ScrolledWindow() headers_scroll = Gtk.ScrolledWindow()
headers_scroll.set_vexpand(True) # Expand to fill available space
headers_scroll.set_min_content_height(150) # Show ~3-4 rows minimum
self.headers_listbox = Gtk.ListBox() self.headers_listbox = Gtk.ListBox()
self.headers_listbox.add_css_class("boxed-list") self.headers_listbox.add_css_class("boxed-list")
headers_scroll.set_child(self.headers_listbox) headers_scroll.set_child(self.headers_listbox)