diff --git a/src/views/emojiPacks/components/LocalEmojiPack.vue b/src/views/emojiPacks/components/LocalEmojiPack.vue index c03ba580..1cf4bdae 100644 --- a/src/views/emojiPacks/components/LocalEmojiPack.vue +++ b/src/views/emojiPacks/components/LocalEmojiPack.vue @@ -42,9 +42,9 @@ - + - +
{{ $t('emoji.reloadEmoji') }} - + {{ $t('emoji.importPacks') }} @@ -32,7 +32,7 @@ - + @@ -52,7 +52,7 @@ - + @@ -128,6 +128,11 @@ export default { this.$store.dispatch('ReloadEmoji') }) }, + sortPack(pack) { + const orderedFiles = Object.keys(pack.files).sort((a, b) => a.localeCompare(b)) + .map(key => [key, pack.files[key]]) + return { ...pack, files: orderedFiles } + }, refreshLocalPacks() { try { this.$store.dispatch('SetLocalEmojiPacks') @@ -191,6 +196,8 @@ export default { } .import-pack-button { margin-left: 10px; + width: 30%; + max-width: 700px; } h1 { margin: 0; @@ -255,6 +262,9 @@ h1 { width: fit-content; } } + .import-pack-button { + width: 90%; + } .reload-emoji-button { width: fit-content; }