mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-26 17:51:57 +01:00
show text when no caption language is selected
This commit is contained in:
parent
b9b0380dfe
commit
546b008b2e
@ -217,7 +217,7 @@ export const captionLanguages: CaptionLanguageOption[] = [
|
||||
id: "none",
|
||||
englishName: "None",
|
||||
name: "None",
|
||||
nativeName: "None",
|
||||
nativeName: "No caption language selected",
|
||||
},
|
||||
{
|
||||
id: "aa",
|
||||
|
@ -130,14 +130,12 @@ export default function SettingsModal(props: {
|
||||
</div>
|
||||
<div className="flex w-full flex-col justify-center">
|
||||
<div className="flex aspect-video flex-col justify-end rounded bg-zinc-800">
|
||||
{selectedCaptionLanguage.id !== "none" ? (
|
||||
<div className="pointer-events-none flex w-full flex-col items-center transition-[bottom]">
|
||||
<CaptionCue
|
||||
scale={0.5}
|
||||
text={selectedCaptionLanguage.nativeName}
|
||||
/>
|
||||
</div>
|
||||
) : null}
|
||||
<div className="pointer-events-none flex w-full flex-col items-center transition-[bottom]">
|
||||
<CaptionCue
|
||||
scale={0.5}
|
||||
text={selectedCaptionLanguage.nativeName}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user