Fix emoji picker off-by-1 error

このコミットが含まれているのは:
tusooa 2023-01-06 13:14:38 -05:00
コミット 76019d1e03
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 7B467EDE43A08224
3個のファイルの変更3行の追加2行の削除

ファイルの表示

@ -244,7 +244,7 @@ const EmojiPicker = {
if (!this.$refs['emoji-groups']) {
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 {
width: 25em;
max-width: 100vw;
max-width: calc(100vw - 20px); // popover gives 10px margin from window edge
display: flex;
flex-direction: column;
background-color: $fallback--bg;

ファイルの表示

@ -83,6 +83,7 @@
:emit-update="true"
@update="onScroll"
@visible="recalculateItemPerRow"
@resize="recalculateItemPerRow"
>
<template #default="{ item: group, index, active }">
<DynamicScrollerItem