From 20beb30fc3f94ef19cc45a2b9d23b377be50794f Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 3 Aug 2025 23:05:16 +0300 Subject: [PATCH] bio editable --- src/components/emoji_input/emoji_input.js | 16 +++---- .../settings_modal/tabs/profile_tab.vue | 15 ------ src/components/user_card/user_card.js | 1 + src/components/user_card/user_card.scss | 10 ++++ src/components/user_card/user_card.vue | 47 +++++++++++++++---- 5 files changed, 57 insertions(+), 32 deletions(-) diff --git a/src/components/emoji_input/emoji_input.js b/src/components/emoji_input/emoji_input.js index f3b6dfe9b..f6ba6e245 100644 --- a/src/components/emoji_input/emoji_input.js +++ b/src/components/emoji_input/emoji_input.js @@ -205,12 +205,6 @@ const EmojiInput = { return emoji.displayText } }, - onInputScroll () { - this.$refs.hiddenOverlay.scrollTo({ - top: this.input.scrollTop, - left: this.input.scrollLeft - }) - }, suggestionListId () { return `suggestions-${this.randomSeed}` }, @@ -239,7 +233,6 @@ const EmojiInput = { this.overlayStyle.fontSize = style.fontSize this.overlayStyle.wordWrap = style.wordWrap this.overlayStyle.whiteSpace = style.whiteSpace - this.resize() input.addEventListener('blur', this.onBlur) input.addEventListener('focus', this.onFocus) input.addEventListener('paste', this.onPaste) @@ -302,6 +295,13 @@ const EmojiInput = { } }, methods: { + onInputScroll (e) { + this.$refs.hiddenOverlay.scrollTo({ + top: this.input.scrollTop, + left: this.input.scrollLeft + }) + this.setCaret(e) + }, triggerShowPicker () { this.$nextTick(() => { this.$refs.picker.showPicker() @@ -561,8 +561,6 @@ const EmojiInput = { this.$refs.suggestorPopover.updateStyles() }) }, - resize () { - }, autoCompleteItemLabel (suggestion) { if (suggestion.user) { return suggestion.displayText + ' ' + suggestion.detailText diff --git a/src/components/settings_modal/tabs/profile_tab.vue b/src/components/settings_modal/tabs/profile_tab.vue index 4335a678e..f25349b24 100644 --- a/src/components/settings_modal/tabs/profile_tab.vue +++ b/src/components/settings_modal/tabs/profile_tab.vue @@ -1,7 +1,6 @@ -

{{ $t('settings.bio') }}

- -