mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
Dropped top padding of first sticker section under shortcut strip.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user