layout: fix indent when using word_char wrap
This commit is contained in:
parent
8e429a30c9
commit
aab42eef39
@ -210,7 +210,7 @@ class ScreenPanel:
|
||||
return
|
||||
name = Gtk.Label(
|
||||
hexpand=True, vexpand=True, halign=Gtk.Align.START, valign=Gtk.Align.CENTER,
|
||||
wrap=True, wrap_mode=Pango.WrapMode.CHAR)
|
||||
wrap=True, wrap_mode=Pango.WrapMode.WORD_CHAR, xalign=0)
|
||||
name.set_markup(f"<big><b>{option['name']}</b></big>")
|
||||
|
||||
labels = Gtk.Box(spacing=0, orientation=Gtk.Orientation.VERTICAL, valign=Gtk.Align.CENTER)
|
||||
@ -219,7 +219,7 @@ class ScreenPanel:
|
||||
tooltip = Gtk.Label(
|
||||
label=option['tooltip'],
|
||||
hexpand=True, vexpand=True, halign=Gtk.Align.START, valign=Gtk.Align.CENTER,
|
||||
wrap=True, wrap_mode=Pango.WrapMode.CHAR)
|
||||
wrap=True, wrap_mode=Pango.WrapMode.WORD_CHAR, xalign=0)
|
||||
labels.add(tooltip)
|
||||
|
||||
row_box = Gtk.Box(spacing=5, valign=Gtk.Align.CENTER, hexpand=True, vexpand=False)
|
||||
|
@ -143,7 +143,10 @@ class Panel(ScreenPanel):
|
||||
if self.list_mode:
|
||||
label = Gtk.Label(label=basename, hexpand=True, vexpand=False)
|
||||
format_label(label)
|
||||
info = Gtk.Label(hexpand=True, halign=Gtk.Align.START, wrap=True, wrap_mode=Pango.WrapMode.WORD_CHAR)
|
||||
info = Gtk.Label(
|
||||
hexpand=True, halign=Gtk.Align.START, xalign=0,
|
||||
wrap=True, wrap_mode=Pango.WrapMode.WORD_CHAR,
|
||||
)
|
||||
info.get_style_context().add_class("print-info")
|
||||
info.set_markup(self.get_info_str(item, path))
|
||||
delete = Gtk.Button(hexpand=False, vexpand=False, can_focus=False, always_show_image=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user