From c6c2e2e31c32d824358403def856d0f6c47ed001 Mon Sep 17 00:00:00 2001 From: BOTAlex Date: Wed, 20 Aug 2025 01:10:20 +0200 Subject: [PATCH] some kind of scrollbar implemented --- src/pages/shop/_art_test.svelte | 24 +- src/routes/comps/CustomScrollBar.svelte | 377 ++++++++++++++++++++++++ 2 files changed, 392 insertions(+), 9 deletions(-) create mode 100644 src/routes/comps/CustomScrollBar.svelte diff --git a/src/pages/shop/_art_test.svelte b/src/pages/shop/_art_test.svelte index ae5dc9e..55fea86 100644 --- a/src/pages/shop/_art_test.svelte +++ b/src/pages/shop/_art_test.svelte @@ -1,17 +1,23 @@ + +
-
- {#each { length: 4 } as i} - - {/each} -
+ +
+ {#each { length: 4 } as i} + + {/each} +
+
diff --git a/src/routes/comps/CustomScrollBar.svelte b/src/routes/comps/CustomScrollBar.svelte new file mode 100644 index 0000000..1a3f1e9 --- /dev/null +++ b/src/routes/comps/CustomScrollBar.svelte @@ -0,0 +1,377 @@ + + + +
+ +
+
+ +
+
+ + + {#if showBarY} +
+
+
+
+ {/if} + + + {#if showBarX} +
+
+
+
+ {/if} +
+ +