From 794e9692fc47b7c801183a12f1910d703cc9dfcb Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Thu, 16 Jan 2025 12:56:34 +0000 Subject: messages: Shrink spacing between messages --- src/chat.py | 1 - src/gtk/chat.ui | 1 + src/style.css | 4 ++++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/chat.py b/src/chat.py index 3ee0438..ef43e5a 100644 --- a/src/chat.py +++ b/src/chat.py @@ -125,7 +125,6 @@ class WeegtkChat(Adw.Bin): def setup_list_item(self, factory, list_item, *user_data): message = WeegtkMessage() list_item.set_child(message) - pass def bind_list_item(self, factory, list_item, *user_data): text = list_item.get_item().get_string() diff --git a/src/gtk/chat.ui b/src/gtk/chat.ui index fa4d77d..05d23f2 100644 --- a/src/gtk/chat.ui +++ b/src/gtk/chat.ui @@ -34,6 +34,7 @@ 1 item log diff --git a/src/style.css b/src/style.css index ae7eab8..44ec363 100644 --- a/src/style.css +++ b/src/style.css @@ -7,3 +7,7 @@ box.message { padding-top: 2px; padding-bottom: 2px; } + +.messages > row { + min-height: 0px; +} -- cgit