mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-13 17:44:01 +02:00
Fixed scroll to top button flashing on page reload
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<div class="fixed bottom-0 left-0 right-0 pointer-events-none" x-data="{ visible: false }"
|
||||
x-init="visible = window.scrollY > 10" x-show="visible" x-transition.opacity
|
||||
x-init="visible = window.scrollY > 10" x-show="visible" x-transition.opacity x-cloak
|
||||
>
|
||||
<div class="container flex justify-end mx-auto px-4 py-10 xl:max-w-screen-xl">
|
||||
<button title="{{ translate('scroll_to_top') }}" class="flex justify-center items-center w-12 h-12 right-0 rounded-full shadow-lg bg-sky-600 text-white cursor-pointer pointer-events-auto transition hover:bg-sky-700 dark:bg-violet-700 dark:hover:bg-violet-800 hover:scale-110"
|
||||
|
Reference in New Issue
Block a user