fix(ui): keep talkie overlay visible after reveal step
Regression introduced by the narrator-video revert (1ad0c4d): the talkie
overlay was hidden whenever no narrator subtitle was active. Restore the
prior behaviour where the talkie stays visible from the reveal step
onward and only the --raised modifier and signal lines depend on the
active narrator dialogue.
This commit is contained in:
@@ -71,14 +71,14 @@ export function TalkieDialogueOverlay(): React.JSX.Element | null {
|
||||
mainState !== "intro" || TALKIE_REVEAL_STEPS.has(introStep);
|
||||
const isNarratorDialogue = activeSubtitle?.speaker === "Narrateur";
|
||||
|
||||
if (!isAfterReveal || !isNarratorDialogue) return null;
|
||||
if (!isAfterReveal) return null;
|
||||
|
||||
return (
|
||||
<aside
|
||||
className="talkie-dialogue-overlay talkie-dialogue-overlay--raised"
|
||||
className={`talkie-dialogue-overlay${isNarratorDialogue ? " talkie-dialogue-overlay--raised" : ""}`}
|
||||
aria-hidden="true"
|
||||
>
|
||||
<TalkieSignalLines />
|
||||
{isNarratorDialogue ? <TalkieSignalLines /> : null}
|
||||
<div className="talkie-dialogue-overlay__model-frame">
|
||||
<Canvas
|
||||
camera={{ position: [0, 0, 4.2], zoom: 78 }}
|
||||
|
||||
Reference in New Issue
Block a user