From 4ff87535e7aae35bfbd66fe88402dcb513af249c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 19 Aug 2021 16:40:42 +0200 Subject: Matrix: add ctrl+r to navigate to replied to message and navigate to message from notifications tab --- src/Body.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Body.cpp') diff --git a/src/Body.cpp b/src/Body.cpp index b7424c5..f9a3717 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -1581,6 +1581,7 @@ namespace QuickMedia { has_loaded_text = true; } + // TODO: Only do this if reactions dirty? if(!item->reactions.empty() && include_embedded_item) { float reaction_offset_x = 0.0f; item_height += body_spacing[body_theme].reaction_padding_y; @@ -1613,7 +1614,8 @@ namespace QuickMedia { const bool has_thumbnail = draw_thumbnails && !item->thumbnail_url.empty() && !merge_with_previous; const float padding_y = has_thumbnail ? body_spacing[body_theme].padding_y : body_spacing[body_theme].padding_y_text_only; item_height = std::max(item_height, item->loaded_image_size.y); - item_height += (padding_y * 2.0f); + if(item_height > 0.0f) + item_height += (padding_y * 2.0f); } item->loaded_height = item_height; -- cgit v1.2.3