mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-30 16:17:41 +01:00
remove parent span
This commit is contained in:
parent
9fe7bdcf47
commit
12555a5933
2 changed files with 7 additions and 8 deletions
|
@ -17,6 +17,7 @@ export function Caption({ text }: { text?: string }) {
|
||||||
}),
|
}),
|
||||||
}}
|
}}
|
||||||
style={{
|
style={{
|
||||||
|
whiteSpace: "pre-line",
|
||||||
...captionSettings.style,
|
...captionSettings.style,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -50,14 +50,12 @@ export function CaptionRenderer({
|
||||||
animation="slide-up"
|
animation="slide-up"
|
||||||
show
|
show
|
||||||
>
|
>
|
||||||
<span>
|
{captions.current.map(
|
||||||
{captions.current.map(
|
({ identifier, end, start, text }) =>
|
||||||
({ identifier, end, start, text }) =>
|
isVisible(start, end) && (
|
||||||
isVisible(start, end) && (
|
<Caption key={identifier || `${start}-${end}`} text={text} />
|
||||||
<Caption key={identifier || `${start}-${end}`} text={text} />
|
)
|
||||||
)
|
)}
|
||||||
)}
|
|
||||||
</span>
|
|
||||||
</Transition>
|
</Transition>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue