From 0c1c5496311570dcdd968eb9ee8e8f48a8873f52 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Thu, 4 Jun 2020 20:46:21 +0300 Subject: [PATCH 1/2] Fix tooltip width to remove its clipping --- src/views/emojiPacks/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/emojiPacks/index.vue b/src/views/emojiPacks/index.vue index 20bfe6ce..52568b01 100644 --- a/src/views/emojiPacks/index.vue +++ b/src/views/emojiPacks/index.vue @@ -7,7 +7,7 @@
{{ $t('emoji.reloadEmoji') }} - + {{ $t('emoji.importPacks') }} @@ -191,6 +191,8 @@ export default { } .import-pack-button { margin-left: 10px; + width: 30%; + max-width: 700px; } h1 { margin: 0; @@ -255,6 +257,9 @@ h1 { width: fit-content; } } + .import-pack-button { + width: 90%; + } .reload-emoji-button { width: fit-content; } From a08df92ccc7172aaa0ee8422104107f118a20c8f Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Fri, 5 Jun 2020 03:05:58 +0300 Subject: [PATCH 2/2] Sort emojis alphabetically --- src/views/emojiPacks/components/LocalEmojiPack.vue | 4 ++-- src/views/emojiPacks/components/RemoteEmojiPack.vue | 4 ++-- src/views/emojiPacks/index.vue | 9 +++++++-- 3 files changed, 11 insertions(+), 6 deletions(-) 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 @@ - + - + - + @@ -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')