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 (
<canvas
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
/>
)
+1 -1
View File
@@ -145,7 +145,7 @@ export default function SubtitleOverlay({ playerRef, subtitleUrl }: Props) {
if (activeCues.length === 0) return null
return (
<div className={`${className} z-30`} style={style}>
<div className={`${className} z-[100]`} style={style}>
{activeCues.map((cue, ci) => (
<div key={ci} className={ci > 0 ? 'mt-1.5' : ''}>
<span data-cue className="whitespace-pre-line">