From a50e0d6ff8bad88359847615d46b51adfdd1f0da Mon Sep 17 00:00:00 2001 From: Mihkel Martin Kasterpalu Date: Tue, 21 Jan 2025 13:46:16 +0200 Subject: [PATCH] Add seperator between names/artists/images, styling tweaks --- src/lib/components/DNDGroup.svelte | 4 ++-- src/lib/components/ui/separator/index.ts | 7 ++++++ .../components/ui/separator/separator.svelte | 22 +++++++++++++++++++ src/routes/+layout.svelte | 2 +- src/routes/+page.svelte | 14 ++++++++---- 5 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 src/lib/components/ui/separator/index.ts create mode 100644 src/lib/components/ui/separator/separator.svelte diff --git a/src/lib/components/DNDGroup.svelte b/src/lib/components/DNDGroup.svelte index 297e854..85a7fdd 100644 --- a/src/lib/components/DNDGroup.svelte +++ b/src/lib/components/DNDGroup.svelte @@ -22,11 +22,11 @@ items, flipDurationMs, type: type, - dropTargetStyle: { outline: 'none' } + dropTargetStyle: {} }} onconsider={handleDndConsider} onfinalize={handleDndFinalize} - class="grid grid-cols-3 items-center gap-16" + class="grid grid-cols-3 items-center gap-14" > {#each items as item, i (item.id)}
diff --git a/src/lib/components/ui/separator/index.ts b/src/lib/components/ui/separator/index.ts new file mode 100644 index 0000000..82442d2 --- /dev/null +++ b/src/lib/components/ui/separator/index.ts @@ -0,0 +1,7 @@ +import Root from "./separator.svelte"; + +export { + Root, + // + Root as Separator, +}; diff --git a/src/lib/components/ui/separator/separator.svelte b/src/lib/components/ui/separator/separator.svelte new file mode 100644 index 0000000..839494d --- /dev/null +++ b/src/lib/components/ui/separator/separator.svelte @@ -0,0 +1,22 @@ + + + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 4760bc0..8f1cac1 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -4,7 +4,7 @@
-
+

Paku biiti

Lohista kokku õiged albumi nimed, diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 4e1a1a0..24861ec 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,4 +1,5 @@