Compare commits

..

2 commits

Author SHA1 Message Date
Henry Jameson
71f2cd8f59 Merge branch 'appearance-tab' into shigusegubu-themes3 2024-06-26 02:15:47 +03:00
Henry Jameson
c27bbfd21c some improvements from testing prod 2024-06-26 02:15:32 +03:00

View file

@ -133,15 +133,10 @@ const EmojiPicker = {
methods: {
updateEmojiSize () {
const css = window.getComputedStyle(this.$refs.popover.$el)
console.log('CSS', css)
const emojiSize = css.getPropertyValue('--emojiSize')
console.log('CSS', emojiSize)
const emojiSizeUnit = emojiSize.replace(/[0-9,.]+/, '')
console.log('CSS', emojiSizeUnit)
const emojiSizeValue = Number(emojiSize.replace(/[^0-9,.]+/, ''))
console.log('CSS', emojiSizeValue)
const fontSize = Number(emojiSize.replace(css.getPropertyValue('font-size').replace(/[^0-9,.]+/, '')))
console.log('CSS', fontSize)
const fontSize = css.getPropertyValue('font-size').replace(/[^0-9,.]+/, '')
let emojiSizeReal
if (emojiSizeUnit.endsWith('em')) {
@ -290,7 +285,7 @@ const EmojiPicker = {
},
computed: {
minItemSize () {
return this.emojiHeight
return this.emojiSize
},
// used to watch it
fontSize () {
@ -302,12 +297,8 @@ const EmojiPicker = {
emojiHeight () {
return this.emojiSize
},
emojiWidth () {
return this.emojiSize
},
itemPerRow () {
console.log(
this.emojiWidth,
this.emojiSize,
this.width
)