summaryrefslogtreecommitdiffstatshomepage
path: root/frontend
diff options
context:
space:
mode:
authorWolfgang Müller2024-11-22 18:15:31 +0100
committerWolfgang Müller2024-11-22 18:15:31 +0100
commit940ef5c245d29b1441bfa1a88c808f637075b109 (patch)
tree58ce0f429f8cd16f4d5003c39085dd1ab3803325 /frontend
parent92e087a1d9a837517496c2e4b577ee51b3bba80e (diff)
downloadhircine-940ef5c245d29b1441bfa1a88c808f637075b109.tar.gz
frontend: Ignore tabindex for container divs
These two break the tabbing flow, instead focus the next item within the container.
Diffstat (limited to '')
-rw-r--r--frontend/src/lib/gallery/Gallery.svelte2
-rw-r--r--frontend/src/routes/+layout.svelte2
2 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/lib/gallery/Gallery.svelte b/frontend/src/lib/gallery/Gallery.svelte
index c3b6386..964c677 100644
--- a/frontend/src/lib/gallery/Gallery.svelte
+++ b/frontend/src/lib/gallery/Gallery.svelte
@@ -5,7 +5,7 @@
export let pages: PageFragment[];
</script>
-<div class="max-h-full gap-2 overflow-auto p-1 pr-3">
+<div class="max-h-full gap-2 overflow-auto p-1 pr-3" tabindex="-1">
{#each pages as page, index}
<GalleryPage {page} {index} on:open on:cover />
{/each}
diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte
index 0eefed1..9a5f3d2 100644
--- a/frontend/src/routes/+layout.svelte
+++ b/frontend/src/routes/+layout.svelte
@@ -68,7 +68,7 @@
</Link>
</Navigation>
-<div class="min-w-[360px] overflow-auto p-4">
+<div class="min-w-[360px] overflow-auto p-4" tabindex="-1">
<slot />
</div>