mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-18 14:42:05 +00:00
Update CaptionsView.tsx
This commit is contained in:
parent
4096001ad7
commit
2586e4c9d3
1 changed files with 9 additions and 7 deletions
|
|
@ -434,11 +434,6 @@ export function CaptionsView({
|
|||
</div>
|
||||
)}
|
||||
|
||||
{/* Search input */}
|
||||
<div className="mt-3">
|
||||
<Input value={searchQuery} onInput={setSearchQuery} />
|
||||
</div>
|
||||
|
||||
<Menu.ScrollToActiveSection className="!pt-1 mt-2 pb-3">
|
||||
{/* Off button */}
|
||||
<CaptionOption
|
||||
|
|
@ -451,11 +446,18 @@ export function CaptionsView({
|
|||
{/* Custom upload option */}
|
||||
<CustomCaptionOption />
|
||||
|
||||
{/* Search input */}
|
||||
{(sourceCaptions.length || externalCaptions.length) > 0 && (
|
||||
<div className="mt-3">
|
||||
<Input value={searchQuery} onInput={setSearchQuery} />
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* No subtitles available message */}
|
||||
{!isLoadingExternalSubtitles &&
|
||||
sourceCaptions.length === 0 &&
|
||||
externalCaptions.length === 0 && (
|
||||
<div className="p-4 mt-6 rounded-xl bg-video-context-light bg-opacity-10 text-center">
|
||||
<div className="p-4 rounded-xl bg-video-context-light bg-opacity-10 text-center">
|
||||
<div className="text-video-context-type-secondary">
|
||||
{t("player.menus.subtitles.empty")}
|
||||
</div>
|
||||
|
|
@ -464,7 +466,7 @@ export function CaptionsView({
|
|||
|
||||
{/* Loading external subtitles */}
|
||||
{isLoadingExternalSubtitles && externalCaptions.length === 0 && (
|
||||
<div className="p-4 mt-6 rounded-xl bg-video-context-light bg-opacity-10 text-center">
|
||||
<div className="p-4 rounded-xl bg-video-context-light bg-opacity-10 text-center">
|
||||
<div className="text-video-context-type-secondary">
|
||||
{t("player.menus.subtitles.loadingExternal")}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue