diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-11-13 22:25:03 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-11-13 22:25:03 +0100 |
commit | a98911daeb80ab8028dfd425d07d19471e936448 (patch) | |
tree | 18196ac23e86b8166e39b691a5adf76c1ff98c6a /src/Body.cpp | |
parent | aea90e2c43d6dbf8b8276e1209f4d4abe1cea128 (diff) |
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)
Diffstat (limited to 'src/Body.cpp')
-rw-r--r-- | src/Body.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; |