Don't horizontally scroll sidebar
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
from typing import Any, Optional
|
||||
|
||||
from gi.repository import Adw, Gio, GLib, Gtk
|
||||
from gi.repository import Adw, Gio, GLib, Gtk, Pango
|
||||
|
||||
from cartridges import shared
|
||||
from cartridges.game import Game
|
||||
@@ -152,6 +152,8 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
||||
Gtk.Label(
|
||||
label=self.get_application().get_source_name(source_id),
|
||||
halign=Gtk.Align.START,
|
||||
wrap=True,
|
||||
wrap_mode=Pango.WrapMode.CHAR,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -94,6 +94,8 @@ template $CartridgesWindow: Adw.ApplicationWindow {
|
||||
}
|
||||
|
||||
ScrolledWindow {
|
||||
hscrollbar-policy: never;
|
||||
|
||||
ListBox sidebar {
|
||||
Box all_games_row_box {
|
||||
margin-top: 12;
|
||||
@@ -109,6 +111,8 @@ template $CartridgesWindow: Adw.ApplicationWindow {
|
||||
Label {
|
||||
halign: start;
|
||||
label: _("All Games");
|
||||
wrap: true;
|
||||
wrap-mode: char;
|
||||
}
|
||||
|
||||
Label all_games_no_label {
|
||||
@@ -135,6 +139,8 @@ template $CartridgesWindow: Adw.ApplicationWindow {
|
||||
halign: start;
|
||||
label: _("Added");
|
||||
margin-end: 6;
|
||||
wrap: true;
|
||||
wrap-mode: char;
|
||||
}
|
||||
|
||||
Label added_games_no_label {
|
||||
|
||||
Reference in New Issue
Block a user