Dropped top padding of first sticker section under shortcut strip.

This commit is contained in:
23rd
2026-04-27 12:52:36 +03:00
committed by John Preston
parent 31e9459995
commit 6791fb851f
3 changed files with 13 additions and 1 deletions
@@ -622,6 +622,7 @@ stickerPanRemoveSet: IconButton(hashtagClose) {
stickerIconMove: 400;
stickerPreviewDuration: 150;
stickerPreviewMin: 0.1;
stickerPanFirstAfterShortcutsSkip: 4px;
mediaPreviewPhotoSkip: 48px;
emojiPanColorAll: IconButton(stickerPanRemoveSet) {
@@ -1593,8 +1593,14 @@ bool EmojiListWidget::enumerateSections(Callback callback) const {
info.rowsCount = info.collapsed
? kCollapsedRows
: (info.count + _columnCount - 1) / _columnCount;
const auto firstAfterShortcuts = !i
&& searchShortcutsShown()
&& !searchShortcutSelected();
info.rowsTop = info.top
+ (i == 0 ? _rowsTop : st().header);
+ (i == 0 ? _rowsTop : st().header)
+ (firstAfterShortcuts
? st::stickerPanFirstAfterShortcutsSkip
: 0);
info.rowsBottom = info.rowsTop
+ (info.rowsCount * _singleSize.height());
if (!callback(info)) {
@@ -504,10 +504,15 @@ bool StickersListWidget::enumerateSections(Callback callback) const {
auto &set = sets[i];
info.section = i;
info.count = set.stickers.size();
const auto firstAfterShortcuts = !i
&& searchShortcutsShown()
&& !searchShortcutSelected();
const auto titleSkip = set.externalLayout
? st::stickersTrendingHeader
: setHasTitle(set)
? st().header
: firstAfterShortcuts
? st::stickerPanFirstAfterShortcutsSkip
: st::stickerPanPadding;
info.rowsTop = info.top + titleSkip;
if (set.externalLayout) {