diff --git a/res/static/style/layout.css b/res/static/style/layout.css index b6d24ba..b23ed96 100644 --- a/res/static/style/layout.css +++ b/res/static/style/layout.css @@ -459,8 +459,8 @@ input[type="color"] { border-radius: 6px; margin: 2px; background: var(--input_background); - gap: 3px; - padding: 3px; + gap: 2px; + padding: 2px; overflow: hidden; color: var(--input_text); cursor: pointer; @@ -510,8 +510,8 @@ input[type="submit"]:active, input[type="button"]:active, input[type="color"]:active { box-shadow: inset 4px 4px 6px var(--shadow_color); - /* Exactly 3px offset compared to the inactive padding to give a depth effect */ - padding: 6px 0px 0px 6px; + /* Exactly 2px offset compared to the inactive padding to give a depth effect */ + padding: 4px 0px 0px 4px; } .button_highlight { diff --git a/svelte/src/filesystem/viewers/Audio.svelte b/svelte/src/filesystem/viewers/Audio.svelte index 6b7739c..f9cd3b9 100644 --- a/svelte/src/filesystem/viewers/Audio.svelte +++ b/svelte/src/filesystem/viewers/Audio.svelte @@ -40,7 +40,8 @@ export const update = async () => { siblings = await nav.get_siblings() for(const sib of siblings) { - if (sib.name === "cover.jpg") { + const lower = sib.name.toLowerCase() + if (lower === "cover.jpg" || lower === "cover.png" || lower === "cover.webp") { console.debug("Found album cover image", sib) background_div.style.backgroundImage = `url("/api/filesystem/${sib.path}")` break diff --git a/svelte/src/layout/ToggleButton.svelte b/svelte/src/layout/ToggleButton.svelte index 486cd56..7fcf567 100644 --- a/svelte/src/layout/ToggleButton.svelte +++ b/svelte/src/layout/ToggleButton.svelte @@ -6,6 +6,7 @@ let { group_first = false, group_middle = false, group_last = false, + highlight = true, action, children, }: { @@ -15,6 +16,7 @@ let { group_first?: boolean; group_middle?: boolean; group_last?: boolean; + highlight?: boolean; action?: (e: MouseEvent) => void; children?: import('svelte').Snippet; } = $props(); @@ -31,7 +33,7 @@ const click = (e: MouseEvent) => { onclick={click} type="button" class="button" - class:button_highlight={on} + class:button_highlight={on && highlight} class:group_first class:group_middle class:group_last diff --git a/svelte/src/wrap/Bookmarks.svelte b/svelte/src/wrap/Bookmarks.svelte index da251ac..72b8286 100644 --- a/svelte/src/wrap/Bookmarks.svelte +++ b/svelte/src/wrap/Bookmarks.svelte @@ -2,6 +2,7 @@ import { bookmark_del, bookmarks_store } from "lib/Bookmarks"; import { fs_encode_path } from "lib/FilesystemAPI.svelte"; import { highlight_current_page } from "lib/HighlightCurrentPage"; +import MenuEntry from "./MenuEntry.svelte"; let { menu_collapsed }: { menu_collapsed: boolean } = $props(); @@ -13,44 +14,37 @@ const toggle_edit = () => { {#if $bookmarks_store.length !== 0} -