Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
00bff2af by wurstsalat at 2024-12-09T20:24:15+01:00
cfix: Preview: Set minimum height to avoid button overlay covering entire image

- - - - -


1 changed file:

- gajim/gtk/preview.py


Changes:

=====================================
gajim/gtk/preview.py
=====================================
@@ -180,7 +180,8 @@ def update(self, preview: Preview, data: bytes | None) -> 
None:
                 width = texture_width
                 height = texture_height
 
-            self._ui.content_overlay.set_size_request(width, height)
+            # Set minimum height of 100 to avoid button overlay covering 
entire image
+            self._ui.content_overlay.set_size_request(width, max(height, 100))
 
             image = Gtk.Picture.new_for_paintable(texture)
             image.add_css_class("preview-image")



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/00bff2af30211c3fc64cb95f0e08e2e47972ff03

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/00bff2af30211c3fc64cb95f0e08e2e47972ff03
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]

Reply via email to