Fix emoji picker off-by-1 error
This commit is contained in:
parent
a7387332ed
commit
76019d1e03
|
@ -244,7 +244,7 @@ const EmojiPicker = {
|
||||||
if (!this.$refs['emoji-groups']) {
|
if (!this.$refs['emoji-groups']) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.width = this.$refs['emoji-groups'].$el.offsetWidth
|
this.width = this.$refs['emoji-groups'].$el.clientWidth
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -7,7 +7,7 @@ $emoji-picker-emoji-size: 32px;
|
||||||
|
|
||||||
.emoji-picker {
|
.emoji-picker {
|
||||||
width: 25em;
|
width: 25em;
|
||||||
max-width: 100vw;
|
max-width: calc(100vw - 20px); // popover gives 10px margin from window edge
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background-color: $fallback--bg;
|
background-color: $fallback--bg;
|
||||||
|
|
|
@ -83,6 +83,7 @@
|
||||||
:emit-update="true"
|
:emit-update="true"
|
||||||
@update="onScroll"
|
@update="onScroll"
|
||||||
@visible="recalculateItemPerRow"
|
@visible="recalculateItemPerRow"
|
||||||
|
@resize="recalculateItemPerRow"
|
||||||
>
|
>
|
||||||
<template #default="{ item: group, index, active }">
|
<template #default="{ item: group, index, active }">
|
||||||
<DynamicScrollerItem
|
<DynamicScrollerItem
|
||||||
|
|
Loading…
Reference in New Issue