1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

remove parent span

This commit is contained in:
frost768 2023-03-16 22:10:45 +03:00
parent 9fe7bdcf47
commit 12555a5933
2 changed files with 7 additions and 8 deletions

View file

@ -17,6 +17,7 @@ export function Caption({ text }: { text?: string }) {
}),
}}
style={{
whiteSpace: "pre-line",
...captionSettings.style,
}}
/>

View file

@ -50,14 +50,12 @@ export function CaptionRenderer({
animation="slide-up"
show
>
<span>
{captions.current.map(
({ identifier, end, start, text }) =>
isVisible(start, end) && (
<Caption key={identifier || `${start}-${end}`} text={text} />
)
)}
</span>
{captions.current.map(
({ identifier, end, start, text }) =>
isVisible(start, end) && (
<Caption key={identifier || `${start}-${end}`} text={text} />
)
)}
</Transition>
);
}