summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-12-31 11:45:27 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-12-31 11:45:27 +0900
commit35d9e13dbb6cd377b1c3a14c4734c07b1d70c1ce (patch)
treea06dcf8cf9ce45c1122e20cab527c20681e2611d /src/client/components
parent12.65.5 (diff)
downloadmisskey-35d9e13dbb6cd377b1c3a14c4734c07b1d70c1ce.tar.gz
misskey-35d9e13dbb6cd377b1c3a14c4734c07b1d70c1ce.tar.bz2
misskey-35d9e13dbb6cd377b1c3a14c4734c07b1d70c1ce.zip
Improve emoji picker usability
Diffstat (limited to 'src/client/components')
-rw-r--r--src/client/components/emoji-picker.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/components/emoji-picker.vue b/src/client/components/emoji-picker.vue
index 996dc7067c..c2d1008e1b 100644
--- a/src/client/components/emoji-picker.vue
+++ b/src/client/components/emoji-picker.vue
@@ -2,7 +2,7 @@
<MkModal ref="modal" :src="src" @click="$refs.modal.close()" @closed="$emit('closed')">
<div class="omfetrab _popup" :class="['w' + width, 'h' + height, { big }]">
<input ref="search" class="search" :class="{ filled: q != null && q != '' }" v-model.trim="q" :placeholder="$ts.search" @paste.stop="paste" @keyup.enter="done()">
- <div class="emojis">
+ <div class="emojis" ref="emojis">
<section class="result">
<div v-if="searchResultCustom.length > 0">
<button v-for="emoji in searchResultCustom"
@@ -180,6 +180,8 @@ export default defineComponent({
watch: {
q() {
+ this.$refs.emojis.scrollTop = 0;
+
if (this.q == null || this.q === '') {
this.searchResultCustom = [];
this.searchResultUnicode = [];