From 971803803c16b1c8761db25e7157ff889572a4ff Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 2 Apr 2024 12:47:24 +0400 Subject: [PATCH] Fix ripple animation on Added sticker set button. --- Telegram/SourceFiles/boxes/stickers_box.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/stickers_box.cpp b/Telegram/SourceFiles/boxes/stickers_box.cpp index 01f6a1ed1..5a15a1ec9 100644 --- a/Telegram/SourceFiles/boxes/stickers_box.cpp +++ b/Telegram/SourceFiles/boxes/stickers_box.cpp @@ -1760,8 +1760,11 @@ void StickersBox::Inner::setActionDown(int newActionDown) { const auto &st = installedSet ? st::stickersTrendingInstalled : st::stickersTrendingAdd; + const auto buttonTextWidth = installedSet + ? _installedWidth + : _addWidth; auto rippleMask = Ui::RippleAnimation::RoundRectMask( - QSize(_addWidth - st.width, st.height), + QSize(buttonTextWidth - st.width, st.height), st::roundRadiusLarge); ensureRipple( st.ripple,