emoji picker

main
alexanderroese 2024-07-17 17:09:04 +02:00
parent 2551ea6468
commit b189bf3e2a
1 changed files with 6 additions and 2 deletions

View File

@ -157,6 +157,11 @@
#shx-emoji-picker-popup:not(.shown) {
display: none;
}
.shx-emoji-picker {
width: 100%;
--emoji-size: 2.5rem;
}
</style>
<script type="module">
@ -539,8 +544,7 @@
if (emojiPickupPopup.childNodes.length === 0) {
const emojiPicker = document.createElement("emoji-picker");
emojiPicker.classList = "light";
emojiPicker.style.width = "100%";
emojiPicker.classList = "light shx-emoji-picker";
emojiPicker.addEventListener("emoji-click", (e) => {
insertText(document.querySelector("#shx-text1"), e.detail.unicode);