logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: 984dfd06c2feff4fecb6a05c9bc4f1da3ea9e009
parent 38c0856c203d68adbfe8d27f8d5002314f64633b
Author: Henry Jameson <me@hjkos.com>
Date:   Sat, 28 Dec 2024 16:48:33 +0200

alternatively

Diffstat:

Msrc/components/emoji_picker/emoji_picker.js12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/components/emoji_picker/emoji_picker.js b/src/components/emoji_picker/emoji_picker.js @@ -140,14 +140,14 @@ const EmojiPicker = { }, updateEmojiSize () { const css = window.getComputedStyle(this.$refs.popover.$el) - const fontSize = css.getPropertyValue('font-size') - const emojiSize = css.getPropertyValue('--emojiSize') + const fontSize = css.getPropertyValue('font-size') || '14px' + const emojiSize = css.getPropertyValue('--emojiSize') || '2.2rem' - const fontSizeUnit = fontSize.replace(/[0-9,.]+/, '') || 'px' - const fontSizeValue = Number(fontSize.replace(/[^0-9,.]+/, '')) || 14 + const fontSizeUnit = fontSize.replace(/[0-9,.]+/, '') + const fontSizeValue = Number(fontSize.replace(/[^0-9,.]+/, '')) - const emojiSizeUnit = emojiSize.replace(/[0-9,.]+/, '') || 'rem' - const emojiSizeValue = Number(emojiSize.replace(/[^0-9,.]+/, '')) || 2.2 + const emojiSizeUnit = emojiSize.replace(/[0-9,.]+/, '') + const emojiSizeValue = Number(emojiSize.replace(/[^0-9,.]+/, '')) let fontSizeMultiplier if (fontSizeUnit.endsWith('em')) {