From a98911daeb80ab8028dfd425d07d19471e936448 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 13 Nov 2022 22:25:03 +0100 Subject: Matrix: allow pinning a message if no message has ever been pinned before in the room, fix get_previous_message spam when reaching top sometimes, fit card view cutting off bottom text (description) --- src/Body.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Body.cpp') diff --git a/src/Body.cpp b/src/Body.cpp index 9eb3c98..b21012d 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -1649,19 +1649,19 @@ namespace QuickMedia { if(item->author_text) { item->author_text->set_position(text_pos); item->author_text->draw(window); - text_offset_y += item->author_text->getHeight() + std::floor(5.0f * get_config().scale); + text_offset_y += item->author_text->getHeight() + std::floor(3.0f * get_config().scale); } if(item->title_text) { item->title_text->set_position(text_pos + mgl::vec2f(0.0f, text_offset_y)); item->title_text->draw(window); - text_offset_y += item->title_text->getHeight() + std::floor(5.0f * get_config().scale); + text_offset_y += item->title_text->getHeight() + std::floor(3.0f * get_config().scale); } if(item->description_text) { item->description_text->set_position(text_pos + mgl::vec2f(0.0f, text_offset_y)); item->description_text->draw(window); - text_offset_y += item->description_text->getHeight() + std::floor(5.0f * get_config().scale); + text_offset_y += item->description_text->getHeight() + std::floor(3.0f * get_config().scale); } const float gradient_height = 5.0f; -- cgit v1.2.3