mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-27 08:41:51 +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",
|
id: "none",
|
||||||
englishName: "None",
|
englishName: "None",
|
||||||
name: "None",
|
name: "None",
|
||||||
nativeName: "None",
|
nativeName: "No caption language selected",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "aa",
|
id: "aa",
|
||||||
|
@ -130,14 +130,12 @@ export default function SettingsModal(props: {
|
|||||||
</div>
|
</div>
|
||||||
<div className="flex w-full flex-col justify-center">
|
<div className="flex w-full flex-col justify-center">
|
||||||
<div className="flex aspect-video flex-col justify-end rounded bg-zinc-800">
|
<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]">
|
||||||
<div className="pointer-events-none flex w-full flex-col items-center transition-[bottom]">
|
<CaptionCue
|
||||||
<CaptionCue
|
scale={0.5}
|
||||||
scale={0.5}
|
text={selectedCaptionLanguage.nativeName}
|
||||||
text={selectedCaptionLanguage.nativeName}
|
/>
|
||||||
/>
|
</div>
|
||||||
</div>
|
|
||||||
) : null}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user