From 5c83858a503c3f4a39e5276f6f33a99c83bc27de Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 1 Jun 2024 10:58:48 +0400 Subject: [PATCH] Remove empty space below video without caption. --- Telegram/SourceFiles/history/view/media/history_view_gif.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Telegram/SourceFiles/history/view/media/history_view_gif.cpp b/Telegram/SourceFiles/history/view/media/history_view_gif.cpp index 4c8713685..a781a3ecc 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_gif.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_gif.cpp @@ -269,9 +269,6 @@ QSize Gif::countOptimalSize() { accumulate_max(maxWidth, botTop->maxWidth); minHeight += botTop->height; } - if (isBubbleBottom()) { - minHeight += st::msgPadding.bottom(); - } } else if (isUnwrapped()) { const auto item = _parent->data(); auto via = item->Get();