diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-10-08 18:10:39 +0100 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-10-08 18:13:41 +0100 |
commit | 138543d4b3a9c1543bf54b55149d648edb8c4bf2 (patch) | |
tree | 226e21d8ee03e40c7a58df0bc59dae13f6a560c8 /src/message.py | |
parent | ec8822c913652cad2b8ed31bd6bb513c641c3d11 (diff) |
Update requested width+height to be more friendly with mobile linux
Also fix rendering error with messages at low window widths.
Co-authored-by: Peter <peter@linmob.net>
Diffstat (limited to 'src/message.py')
-rw-r--r-- | src/message.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/message.py b/src/message.py index 5f70b9e..e61957d 100644 --- a/src/message.py +++ b/src/message.py @@ -16,7 +16,7 @@ # along with this program. If not, see <https://www.gnu.org/licenses/>. # # SPDX-License-Identifier: GPL-3.0-or-later -from gi.repository import Adw, Gtk, GLib +from gi.repository import Adw, Gtk, GLib, Pango import re @@ -71,8 +71,8 @@ class WeegtkMessage(Gtk.Box): first = False markuped = self.parse_message(message) msg = Gtk.Label(label=markuped, selectable=True, - wrap=True, halign=0, hexpand=True, hexpand_set=True, - xalign=0, margin_top=margin, use_markup=True) + wrap=True, wrap_mode=Pango.WrapMode.WORD_CHAR, xalign=0, + margin_top=margin, use_markup=True) self.message_list.append(msg) |