forked from rDrama/rDrama
scroll to top when switching emoji tabs
parent
ba47449685
commit
1769f7941e
|
@ -278,6 +278,8 @@ function switchEmojiTab(e)
|
||||||
|
|
||||||
for(const emojiDOM of Object.values(emojiDOMs))
|
for(const emojiDOM of Object.values(emojiDOMs))
|
||||||
emojiDOM.hidden = emojiDOM.dataset.className !== className;
|
emojiDOM.hidden = emojiDOM.dataset.className !== className;
|
||||||
|
|
||||||
|
document.getElementById('emoji-container').scrollTop = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const emojitab of document.getElementsByClassName('emojitab')) {
|
for (const emojitab of document.getElementsByClassName('emojitab')) {
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="overflow-y: auto;">
|
<div id="emoji-container" style="overflow-y: auto">
|
||||||
<div class="modal-body p-0" id="emoji-modal-body">
|
<div class="modal-body p-0" id="emoji-modal-body">
|
||||||
<div id="no-emojis-found" class="tab-content py-3 pl-4" hidden>
|
<div id="no-emojis-found" class="tab-content py-3 pl-4" hidden>
|
||||||
No results... Next time be better with your query. 💅
|
No results... Next time be better with your query. 💅
|
||||||
|
@ -63,7 +63,6 @@
|
||||||
<img loading="lazy">
|
<img loading="lazy">
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue