mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
show text when no caption language is selected
This commit is contained in:
parent
b9b0380dfe
commit
546b008b2e
2 changed files with 7 additions and 9 deletions
|
@ -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 a new issue