mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 08:22:19 +00:00
trucate caption title
This commit is contained in:
parent
94921e58dd
commit
22ddddfe27
1 changed files with 9 additions and 1 deletions
|
|
@ -120,7 +120,15 @@ export function CaptionOption(props: {
|
||||||
<FlagIcon langCode={props.countryCode} />
|
<FlagIcon langCode={props.countryCode} />
|
||||||
</span>
|
</span>
|
||||||
) : null}
|
) : null}
|
||||||
<span>{props.children}</span>
|
<span
|
||||||
|
className={
|
||||||
|
props.flag || props.subtitleUrl || props.subtitleSource
|
||||||
|
? "truncate max-w-[100px]"
|
||||||
|
: ""
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{props.children}
|
||||||
|
</span>
|
||||||
{props.subtitleType && (
|
{props.subtitleType && (
|
||||||
<span className="ml-2 px-2 py-0.5 rounded bg-video-context-hoverColor bg-opacity-80 text-video-context-type-main text-xs font-semibold">
|
<span className="ml-2 px-2 py-0.5 rounded bg-video-context-hoverColor bg-opacity-80 text-video-context-type-main text-xs font-semibold">
|
||||||
{props.subtitleType.toUpperCase()}
|
{props.subtitleType.toUpperCase()}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue