mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +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} />
|
||||
</span>
|
||||
) : null}
|
||||
<span>{props.children}</span>
|
||||
<span
|
||||
className={
|
||||
props.flag || props.subtitleUrl || props.subtitleSource
|
||||
? "truncate max-w-[100px]"
|
||||
: ""
|
||||
}
|
||||
>
|
||||
{props.children}
|
||||
</span>
|
||||
{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">
|
||||
{props.subtitleType.toUpperCase()}
|
||||
|
|
|
|||
Loading…
Reference in a new issue