Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
621d0024 by wurstsalat at 2024-07-06T14:33:48+02:00
imprv: MessageRowActons: Hide quick reactions on narrow screens
Fixes #11888
- - - - -
59b8a083 by wurstsalat at 2024-07-06T14:35:06+02:00
cfix: MessageRowActions: Increase offset for merged rows
- - - - -
1 changed file:
- gajim/gtk/conversation/rows/widgets.py
Changes:
=====================================
gajim/gtk/conversation/rows/widgets.py
=====================================
@@ -121,7 +121,7 @@ def update(self, y_coord: int, message_row: MessageRow) ->
None:
# Subtract some space to let MessageRowActions 'flow' above the row
offset = 12
if self._message_row.is_merged:
- offset = 24
+ offset = 28
adjusted_y_coord = y_coord - offset
if adjusted_y_coord < 0:
@@ -131,8 +131,16 @@ def update(self, y_coord: int, message_row: MessageRow) ->
None:
self.set_no_show_all(False)
self.show_all()
+ message_row_width = self._message_row.get_allocated_width()
reactions_visible = self._get_reactions_visible()
+
for button in self._reaction_buttons:
+ if (isinstance(button, QuickReactionButton) and reactions_visible
and
+ message_row_width < 600):
+ # Don't show QuickReactionButtons on narrow screens
+ button.set_visible(False)
+ continue
+
button.set_visible(reactions_visible)
self._reply_button.set_visible(self._get_reply_visible())
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/f3fc0cdf0b9739141e27e86520b7809c3b626ea0...59b8a08303c12d344d022887d299812645b66171
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/f3fc0cdf0b9739141e27e86520b7809c3b626ea0...59b8a08303c12d344d022887d299812645b66171
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]