Compare commits

..

10 commits

Author SHA1 Message Date
Henry Jameson
34d6e014ae debug 2024-06-26 02:05:04 +03:00
Henry Jameson
ba50661840 reverse order? 2024-06-26 02:02:58 +03:00
Henry Jameson
f25dafb049 ???? 2024-06-26 02:01:26 +03:00
Henry Jameson
868119679f use actual data field instead of proxy computed 2024-06-26 01:58:25 +03:00
Henry Jameson
4faca7d3ca debug 2024-06-26 01:52:57 +03:00
Henry Jameson
e5fa8b357b fix? 2024-06-26 01:49:52 +03:00
Henry Jameson
6c5a34e491 fix 2024-06-26 01:46:30 +03:00
Henry Jameson
6ffaa8edc9 try to fix it? 2024-06-26 01:45:24 +03:00
Henry Jameson
7a8511f86c oops 2024-06-26 00:18:24 +03:00
Henry Jameson
e72552e75c error? 2024-06-26 00:13:57 +03:00

View file

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