Private
Public Access
1
0

gtk: image sizing fix

This commit is contained in:
2026-02-22 00:19:43 -08:00
parent 335ded4752
commit a4bd28b22c
4 changed files with 18 additions and 8 deletions

View File

@@ -328,6 +328,7 @@ private class TranscriptDrawingArea : Widget
private void recompute_message_layouts() {
var container_width = get_width();
float max_width = container_width * 0.90f;
float image_max_width = max_width * 0.75f;
DateTime? last_date = null;
string? last_sender = null;
@@ -371,7 +372,7 @@ private class TranscriptDrawingArea : Widget
};
}
var image_layout = new ImageBubbleLayout(attachment.guid, message.from_me, this, max_width, image_size);
var image_layout = new ImageBubbleLayout(attachment.guid, message.from_me, this, image_max_width, image_size);
image_layout.id = @"image-$(attachment.guid)";
if (animate) {