gtk: image sizing fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user