diff --git a/biome.json b/biome.json
index bdf447b..f6accd1 100644
--- a/biome.json
+++ b/biome.json
@@ -14,44 +14,10 @@
"!public"
]
},
- "formatter": {
- "enabled": true
- },
- "linter": {
- "enabled": true,
- "rules": {
- "preset": "recommended"
- }
- },
"html": {
"formatter": {
"enabled": true
},
"experimentalFullSupportEnabled": true
- },
- "overrides": [
- {
- "includes": ["**/*.svelte", "**/*.astro", "**/*.vue"],
- "linter": {
- "rules": {
- "style": {
- "useConst": "off",
- "useImportType": "off"
- },
- "correctness": {
- "noUnusedVariables": "off",
- "noUnusedImports": "off"
- }
- }
- }
- }
- ],
- "assist": {
- "enabled": true,
- "actions": {
- "source": {
- "organizeImports": "on"
- }
- }
}
}
diff --git a/src/lib/Controls.svelte b/src/lib/Controls.svelte
index d6ec8e4..cdada2b 100644
--- a/src/lib/Controls.svelte
+++ b/src/lib/Controls.svelte
@@ -36,6 +36,7 @@ let menu = $state<{
>
{#snippet favoriteButton(track: Song)}
{/each}
-
+
{/if}
{#if settings.controlLoop || player.loop}
{
menu = {
@@ -220,6 +229,7 @@ let menu = $state<{
{t("common.sort")}
{t("common.clear")}
(ui.showSettings = true)}
title={t("common.settings")}
@@ -451,7 +462,10 @@ button {
color: var(--accent-red);
}
}
-.rating-stars {
+fieldset {
display: flex;
+ margin: 0;
+ padding: 0;
+ border: 0;
}
diff --git a/src/lib/Library.svelte b/src/lib/Library.svelte
index 37d13db..e503bb1 100644
--- a/src/lib/Library.svelte
+++ b/src/lib/Library.svelte
@@ -771,6 +771,7 @@ function onKey(event: KeyboardEvent) {
+
+
{#if menu}
{
diff --git a/src/lib/LibraryTreeItem.svelte b/src/lib/LibraryTreeItem.svelte
index 82739fe..0ae4896 100644
--- a/src/lib/LibraryTreeItem.svelte
+++ b/src/lib/LibraryTreeItem.svelte
@@ -422,7 +422,10 @@ function onDragStart(event: DragEvent) {
tabindex="-1"
class="action pressable"
disabled={busy}
- onclick={(e) => (e.stopPropagation(), doUpdate())}
+ onclick={(e) => {
+ e.stopPropagation();
+ doUpdate();
+ }}
title={isRadio ? t("common.update") : t("action.update_playlist")}
>
@@ -434,7 +437,10 @@ function onDragStart(event: DragEvent) {
tabindex="-1"
class="action pressable"
disabled={busy}
- onclick={(e) => (e.stopPropagation(), doDelete())}
+ onclick={(e) => {
+ e.stopPropagation();
+ doDelete();
+ }}
title={isShare
? t("action.delete_share")
: isRadio
@@ -450,7 +456,10 @@ function onDragStart(event: DragEvent) {
tabindex="-1"
class="action pressable"
disabled={busy}
- onclick={(e) => (e.stopPropagation(), doCopyShareLink())}
+ onclick={(e) => {
+ e.stopPropagation();
+ doCopyShareLink();
+ }}
title={t("action.copy_link")}
>
@@ -462,7 +471,10 @@ function onDragStart(event: DragEvent) {
tabindex="-1"
class="action pressable"
disabled={busy}
- onclick={(e) => (e.stopPropagation(), onPrimaryAction())}
+ onclick={(e) => {
+ e.stopPropagation();
+ onPrimaryAction();
+ }}
title={type === "new-playlist"
? t("action.new_playlist")
: t("action.new_station")}
@@ -476,7 +488,10 @@ function onDragStart(event: DragEvent) {
tabindex="-1"
class="action pressable"
disabled={busy}
- onclick={(e) => (e.stopPropagation(), onAdd?.(false))}
+ onclick={(e) => {
+ e.stopPropagation();
+ onAdd?.(false);
+ }}
title={t("action.add_to_queue")}
>
diff --git a/src/lib/NowPlaying.svelte b/src/lib/NowPlaying.svelte
index b93ebd2..7679058 100644
--- a/src/lib/NowPlaying.svelte
+++ b/src/lib/NowPlaying.svelte
@@ -260,12 +260,12 @@ $effect(() => {
role="presentation"
class="lyrics"
class:synced={lyrics.synced.length > 0}
- onpointerenter={(event) =>
- event.pointerType === "mouse" &&
- (lyricsHovered = true)}
- onpointerleave={(event) =>
- event.pointerType === "mouse" &&
- (lyricsHovered = false)}
+ onpointerenter={(event) => {
+ if (event.pointerType === "mouse") lyricsHovered = true;
+ }}
+ onpointerleave={(event) => {
+ if (event.pointerType === "mouse") lyricsHovered = false;
+ }}
>
{#if lyrics.synced.length}
{#each lyrics.synced as line, index}
@@ -312,6 +312,11 @@ $effect(() => {
{/if}