Adrien Denat
commited on
Commit
•
a503e4d
1
Parent(s):
4a6603b
set button transition to be local so it doesn't prevent page unmounting (#147)
Browse files
src/lib/components/ScrollToBottomBtn.svelte
CHANGED
@@ -26,7 +26,7 @@
|
|
26 |
|
27 |
{#if visible}
|
28 |
<button
|
29 |
-
transition:fade={{ duration: 150 }}
|
30 |
on:click={() => scrollNode.scrollTo({ top: scrollNode.scrollHeight, behavior: "smooth" })}
|
31 |
class="btn absolute flex h-[41px] w-[41px] rounded-full border bg-white shadow-md transition-all hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:shadow-gray-950 dark:hover:bg-gray-600 {className}"
|
32 |
><IconChevron classNames="mt-[2px]" /></button
|
|
|
26 |
|
27 |
{#if visible}
|
28 |
<button
|
29 |
+
transition:fade|local={{ duration: 150 }}
|
30 |
on:click={() => scrollNode.scrollTo({ top: scrollNode.scrollHeight, behavior: "smooth" })}
|
31 |
class="btn absolute flex h-[41px] w-[41px] rounded-full border bg-white shadow-md transition-all hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:shadow-gray-950 dark:hover:bg-gray-600 {className}"
|
32 |
><IconChevron classNames="mt-[2px]" /></button
|