This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-30 17:45:18 -04:00
1 parent b356b80f8c
commit e4694f82eb
2 files changed
+7 -3

No files matched your search

+3 -1
View File
@@ -466,7 +466,7 @@
}); });
</script> </script>
<div class="relative {className}"> <div class="relative {className}">
{#if loading} {#if loading}
<div class="absolute inset-0 flex items-center justify-center"> <div class="absolute inset-0 flex items-center justify-center">
<Spinner className="size-5" /> <Spinner className="size-5" />
@@ -482,6 +482,8 @@
? 'overflow-hidden h-full flex items-center justify-center overscroll-contain' ? 'overflow-hidden h-full flex items-center justify-center overscroll-contain'
: 'overflow-y-auto h-full'} : 'overflow-y-auto h-full'}
bind:this={outerContainer} bind:this={outerContainer}
role="region"
aria-label={`${itemLabel} viewer`}
tabindex="0" tabindex="0"
on:scroll={handleScroll} on:scroll={handleScroll}
on:wheel|nonpassive={handleWheel} on:wheel|nonpassive={handleWheel}
+4 -2
View File
@@ -231,15 +231,17 @@
}); });
</script> </script>
<div <div
bind:this={rootEl} bind:this={rootEl}
role="region"
aria-label={`${itemLabel} preview`}
tabindex="0" tabindex="0"
on:keydown={handleKeyDown} on:keydown={handleKeyDown}
on:pointerdown={focusPreview} on:pointerdown={focusPreview}
class="relative grid {hideThumbs class="relative grid {hideThumbs
? 'grid-cols-[minmax(0,1fr)]' ? 'grid-cols-[minmax(0,1fr)]'
: 'grid-cols-[144px_minmax(0,1fr)]'} min-h-0 bg-transparent text-gray-900 dark:text-gray-100 {className}" : 'grid-cols-[144px_minmax(0,1fr)]'} min-h-0 bg-transparent text-gray-900 dark:text-gray-100 {className}"
> >
<aside <aside
class={hideThumbs class={hideThumbs
? 'hidden' ? 'hidden'