feat: improve lightbox ux and accessibility

This commit is contained in:
ralksta
2026-03-08 18:05:34 +01:00
parent 8e3f984f96
commit 0b1d2ae1db
3 changed files with 45 additions and 21 deletions

View File

@@ -196,14 +196,14 @@ exifOnHover: ${exifOnHover}`;
return (
<>
{/* ── Floating Toggle Button — bottom-right ── */}
{/* ── Floating Toggle Button — bottom-left ── */}
<button
onClick={() => setOpen(!open)}
aria-label="Dev Toolbar"
style={{
position: 'fixed',
bottom: 20,
right: 20,
left: 20,
zIndex: 99999,
width: 44,
height: 44,
@@ -224,13 +224,13 @@ exifOnHover: ${exifOnHover}`;
{open ? '✕' : '🎨'}
</button>
{/* ── Panel — anchored bottom-right ────────── */}
{/* ── Panel — anchored bottom-left ────────── */}
{open && (
<div
style={{
position: 'fixed',
bottom: 76,
right: 20,
left: 20,
zIndex: 99998,
width: 300,
background: 'rgba(18,18,22,0.97)',