mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-10 23:35:08 +01:00
remove parent span
This commit is contained in:
parent
9fe7bdcf47
commit
12555a5933
@ -17,6 +17,7 @@ export function Caption({ text }: { text?: string }) {
|
||||
}),
|
||||
}}
|
||||
style={{
|
||||
whiteSpace: "pre-line",
|
||||
...captionSettings.style,
|
||||
}}
|
||||
/>
|
||||
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user