EmojiPickerDropdown: shrink emoji size, cleanup
This commit is contained in:
parent
26b5ca8b6e
commit
a8ebbc15c8
|
@ -10,7 +10,6 @@ import { isMobile } from 'soapbox/is_mobile';
|
||||||
|
|
||||||
import { buildCustomEmojis } from '../../emoji';
|
import { buildCustomEmojis } from '../../emoji';
|
||||||
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
|
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
|
||||||
// import { Picker as EmojiPicker } from '../../emoji/emoji_picker';
|
|
||||||
|
|
||||||
import type { EmojiPick } from 'emoji-mart';
|
import type { EmojiPick } from 'emoji-mart';
|
||||||
import type { List } from 'immutable';
|
import type { List } from 'immutable';
|
||||||
|
@ -18,19 +17,6 @@ import type { Emoji, CustomEmoji, NativeEmoji } from 'soapbox/features/emoji';
|
||||||
|
|
||||||
let EmojiPicker: any; // load asynchronously
|
let EmojiPicker: any; // load asynchronously
|
||||||
|
|
||||||
// const categories = [
|
|
||||||
// 'frequent',
|
|
||||||
// 'custom',
|
|
||||||
// 'people',
|
|
||||||
// 'nature',
|
|
||||||
// 'foods',
|
|
||||||
// 'activity',
|
|
||||||
// 'places',
|
|
||||||
// 'objects',
|
|
||||||
// 'symbols',
|
|
||||||
// 'flags',
|
|
||||||
// ];
|
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
emoji: { id: 'emoji_button.label', defaultMessage: 'Insert emoji' },
|
emoji: { id: 'emoji_button.label', defaultMessage: 'Insert emoji' },
|
||||||
emoji_pick: { id: 'emoji_button.pick', defaultMessage: 'Pick an emoji...' },
|
emoji_pick: { id: 'emoji_button.pick', defaultMessage: 'Pick an emoji...' },
|
||||||
|
@ -237,12 +223,11 @@ const EmojiPickerDropdown: React.FC<IEmojiPickerDropdown> = ({ custom_emojis, fr
|
||||||
recent={frequentlyUsedEmojis}
|
recent={frequentlyUsedEmojis}
|
||||||
perLine={8}
|
perLine={8}
|
||||||
skin={onSkinTone}
|
skin={onSkinTone}
|
||||||
emojiSize={38}
|
emojiSize={22}
|
||||||
emojiButtonSize={50}
|
emojiButtonSize={34}
|
||||||
set={'twitter'}
|
set='twitter'
|
||||||
theme={theme}
|
theme={theme}
|
||||||
i18n={getI18n()}
|
i18n={getI18n()}
|
||||||
// categories={categories}
|
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</RenderAfter>
|
</RenderAfter>
|
||||||
|
|
Loading…
Reference in New Issue