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,