mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +00:00
Move to correct menu
This commit is contained in:
parent
d2acf73793
commit
5caae343df
4 changed files with 14 additions and 7 deletions
|
|
@ -91,12 +91,17 @@ function SettingsOverlay({ id }: { id: string }) {
|
|||
<EmbedSelectionView id={id} sourceId={chosenSourceId} />
|
||||
</Menu.CardWithScrollable>
|
||||
</OverlayPage>
|
||||
<OverlayPage id={id} path="/playback" width={343} height={330}>
|
||||
<OverlayPage id={id} path="/playback" width={343} height={385}>
|
||||
<Menu.Card>
|
||||
<PlaybackSettingsView id={id} />
|
||||
</Menu.Card>
|
||||
</OverlayPage>
|
||||
<OverlayPage id={id} path="/transcript" width={343} height={452}>
|
||||
<OverlayPage
|
||||
id={id}
|
||||
path="/playback/transcript"
|
||||
width={343}
|
||||
height={452}
|
||||
>
|
||||
<Menu.CardWithScrollable>
|
||||
<TranscriptView id={id} />
|
||||
</Menu.CardWithScrollable>
|
||||
|
|
|
|||
|
|
@ -308,6 +308,11 @@ export function PlaybackSettingsView({ id }: { id: string }) {
|
|||
{t("settings.preferences.thumbnailLabel")}
|
||||
</Menu.Link>
|
||||
)}
|
||||
<Menu.ChevronLink
|
||||
onClick={() => router.navigate("/playback/transcript")}
|
||||
>
|
||||
Transcript
|
||||
</Menu.ChevronLink>
|
||||
</div>
|
||||
</Menu.Section>
|
||||
</>
|
||||
|
|
|
|||
|
|
@ -151,9 +151,6 @@ export function SettingsMenu({ id }: { id: string }) {
|
|||
<Menu.ChevronLink onClick={() => router.navigate("/playback")}>
|
||||
{t("player.menus.settings.playbackItem")}
|
||||
</Menu.ChevronLink>
|
||||
<Menu.ChevronLink onClick={() => router.navigate("/transcript")}>
|
||||
Transcript
|
||||
</Menu.ChevronLink>
|
||||
</Menu.Section>
|
||||
</Menu.Card>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export function TranscriptView({ id }: { id: string }) {
|
|||
.map((word) => wordOverrides[word] ?? word)
|
||||
.join(" ")
|
||||
.replaceAll(/ i'/g, " I'")
|
||||
.replaceAll(/\r?\n/g, "");
|
||||
.replaceAll(/\r?\n/g, " ");
|
||||
|
||||
return {
|
||||
key: makeQueId(i, start, end),
|
||||
|
|
@ -190,7 +190,7 @@ export function TranscriptView({ id }: { id: string }) {
|
|||
Transcript
|
||||
</Menu.BackLink>
|
||||
<Menu.Section>
|
||||
<div className="sticky top-0 z-10 -mx-3 px-3 py-2 mb-2 bg-video-context-light bg-opacity-10 backdrop-blur-sm">
|
||||
<div className="sticky top-0 z-10 -mx-3 px-3 py-2 mb-2">
|
||||
<Input value={searchQuery} onInput={setSearchQuery} />
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue