aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2023-09-25 15:02:03 +0200
committerfiaxh <git@lightrise.org>2023-09-25 15:02:03 +0200
commitc2efb214afa9f712c7ac112899c7d9b730e10de0 (patch)
treeafc9252248d6ea3230188610cecb45b8b7037583 /main
parente2c34bf2235c9f85fc91de9c0f1b74858f4ef89e (diff)
downloaddino-c2efb214afa9f712c7ac112899c7d9b730e10de0.tar.gz
dino-c2efb214afa9f712c7ac112899c7d9b730e10de0.zip
conversation details: Fix for libadwaita < 1.4
Diffstat (limited to 'main')
-rw-r--r--main/data/conversation_details.ui1
-rw-r--r--main/src/windows/conversation_details.vala5
2 files changed, 5 insertions, 1 deletions
diff --git a/main/data/conversation_details.ui b/main/data/conversation_details.ui
index 1347ad2b..4229d875 100644
--- a/main/data/conversation_details.ui
+++ b/main/data/conversation_details.ui
@@ -99,7 +99,6 @@
<object class="AdwButtonContent" id="notification_button_menu_content">
<property name="icon-name">notification-symbolic</property>
<property name="label">Mute</property>
- <property name="can-shrink">True</property>
</object>
</child>
<child>
diff --git a/main/src/windows/conversation_details.vala b/main/src/windows/conversation_details.vala
index 6fb66a1c..099412d1 100644
--- a/main/src/windows/conversation_details.vala
+++ b/main/src/windows/conversation_details.vala
@@ -46,6 +46,11 @@ namespace Dino.Ui.ConversationDetails {
model.encryption_rows.items_changed.connect(create_preferences_rows);
model.settings_rows.items_changed.connect(create_preferences_rows);
model.notify["room-configuration-rows"].connect(create_preferences_rows);
+
+#if Adw_1_4
+ // TODO: replace with putting buttons in new line on small screens
+ notification_button_menu_content.can_shrink = true;
+#endif
}
private void update_pinned_button() {