raise subtitle z-index above controls overlay so they stay visible when ui fades

This commit is contained in:
2026-04-18 22:03:02 +03:00
parent a7e36478a0
commit a4d4d1cea9
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ export default function LibAssRenderer({ playerRef, subtitleUrl }: Props) {
return ( return (
<canvas <canvas
ref={canvasRef} ref={canvasRef}
className="absolute inset-0 w-full h-full pointer-events-none z-30" className="absolute inset-0 w-full h-full pointer-events-none z-[100]"
aria-hidden aria-hidden
/> />
) )
+1 -1
View File
@@ -145,7 +145,7 @@ export default function SubtitleOverlay({ playerRef, subtitleUrl }: Props) {
if (activeCues.length === 0) return null if (activeCues.length === 0) return null
return ( return (
<div className={`${className} z-30`} style={style}> <div className={`${className} z-[100]`} style={style}>
{activeCues.map((cue, ci) => ( {activeCues.map((cue, ci) => (
<div key={ci} className={ci > 0 ? 'mt-1.5' : ''}> <div key={ci} className={ci > 0 ? 'mt-1.5' : ''}>
<span data-cue className="whitespace-pre-line"> <span data-cue className="whitespace-pre-line">
+1
View File
@@ -133,6 +133,7 @@ export function useLibraryItems(
'ProviderIds', 'ProviderIds',
'Width', 'Width',
'Height', 'Height',
'RunTimeTicks',
...(opts?.includePeople ? (['People'] as const) : []), ...(opts?.includePeople ? (['People'] as const) : []),
], ],
} as any) } as any)
+1 -1
View File
@@ -89,7 +89,7 @@ export default function StatsPage() {
</header> </header>
{isLoading && items.length === 0 && ( {isLoading && items.length === 0 && (
<div className="rounded-xl bg-elevated/30 border border-border p-8 text-center"> <div className="rounded-xl bg-elevated/30 border border-border p-8 text-center mb-8">
<p className="text-[13px] text-text-2 font-medium">Crunching the numbers...</p> <p className="text-[13px] text-text-2 font-medium">Crunching the numbers...</p>
</div> </div>
)} )}