diff --git a/src/renderer/src/components/library/LibraryShuffles.svelte b/src/renderer/src/components/library/LibraryShuffles.svelte index 376117a..d5d5c55 100644 --- a/src/renderer/src/components/library/LibraryShuffles.svelte +++ b/src/renderer/src/components/library/LibraryShuffles.svelte @@ -81,91 +81,98 @@ const shuffles = liveQuery(() => db.shuffles.toArray()) -
-
-

Shuffles

+
+
+

Shuffles

- - {#each $shuffles?.filter((sh) => !sh.autoGeneratedForProfileId) ?? [] as shuffle} - {@const enabled = $activeProfileStore.enabledShuffleIds.includes(shuffle.id)} - - - - - {shuffle?.label ?? shuffle?.id} - -
- toggleShuffleEnabled(shuffle.id)} - > - - - -
- +
+ + {#each $shuffles?.filter((sh) => !sh.autoGeneratedForProfileId) ?? [] as shuffle} + {@const enabled = $activeProfileStore.enabledShuffleIds.includes(shuffle.id)} + + + + + {shuffle?.label ?? shuffle?.id} + +
+
+ toggleShuffleEnabled(shuffle.id)} + > + + - -
-
+
+ -
{ - ev.preventDefault() - }} - on:drop={(e) => drop(e, shuffle.id)} - class:dropActive={$isDraggingAddon} - > - {#if shuffle.shuffledAddonIds.length == 0} -
- Drag and drop addons here to shuffle them + +
- {/if} - {#each shuffle.shuffledAddonIds as addonId} -
- addon.id == addonId)} - /> +
{ + ev.preventDefault() + }} + on:drop={(e) => drop(e, shuffle.id)} + class:dropActive={$isDraggingAddon} + > + {#if shuffle.shuffledAddonIds.length == 0} +
+ Drag and drop addons here to shuffle them +
+ {/if} - + {#each shuffle.shuffledAddonIds as addonId} +
+ addon.id == addonId)} + /> + + +
+ {/each}
- {/each} -
- - - {/each} - +
+
+
+ {/each} +
+