mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #3862 from tgxworld/emoji_toolbar_mobile
FIX: Emoji toolbar too wide on mobile.
This commit is contained in:
commit
2fe70f6969
1 changed files with 4 additions and 1 deletions
|
@ -4,7 +4,9 @@ import KeyValueStore from "discourse/lib/key-value-store";
|
|||
const keyValueStore = new KeyValueStore("discourse_emojis_");
|
||||
const EMOJI_USAGE = "emojiUsage";
|
||||
|
||||
const PER_ROW = 12, PER_PAGE = 60;
|
||||
let PER_ROW = 12;
|
||||
const PER_PAGE = 60;
|
||||
|
||||
let ungroupedIcons, recentlyUsedIcons;
|
||||
|
||||
if (!keyValueStore.getObject(EMOJI_USAGE)) {
|
||||
|
@ -159,6 +161,7 @@ function showSelector(options) {
|
|||
options.appendTo.append('<div class="emoji-modal-wrapper"></div>');
|
||||
$('.emoji-modal-wrapper').click(() => closeSelector());
|
||||
|
||||
if (Discourse.Mobile.mobileView) PER_ROW = 9;
|
||||
const page = keyValueStore.getInt("emojiPage", 0);
|
||||
const offset = keyValueStore.getInt("emojiOffset", 0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue