mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-06 20:49:57 +00:00
minor fixes
This commit is contained in:
parent
1c1f876be3
commit
12f97e7501
2 changed files with 4 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ function SettingsOverlay({ id }: { id: string }) {
|
|||
id={id}
|
||||
path="/playback/skip-segments"
|
||||
width={343}
|
||||
height={496}
|
||||
height={446}
|
||||
>
|
||||
<Menu.Card>
|
||||
<SkipSegmentsView id={id} />
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import { useSkipTime } from "@/components/player/hooks/useSkipTime";
|
|||
import { Menu } from "@/components/player/internals/ContextMenu";
|
||||
import { TIDBSubmissionForm } from "@/components/player/TIDBSubmissionForm";
|
||||
import { useOverlayRouter } from "@/hooks/useOverlayRouter";
|
||||
import { useOverlayStack } from "@/stores/interface/overlayStack";
|
||||
import { usePlayerStore } from "@/stores/player/store";
|
||||
import { usePreferencesStore } from "@/stores/preferences";
|
||||
import { formatSeconds } from "@/utils/formatSeconds";
|
||||
|
|
@ -16,6 +17,7 @@ export function SkipSegmentsView({ id }: { id: string }) {
|
|||
const display = usePlayerStore((s) => s.display);
|
||||
const segments = useSkipTime();
|
||||
const tidbKey = usePreferencesStore((s) => s.tidbKey);
|
||||
const { setCurrentOverlay } = useOverlayStack();
|
||||
const [showSubmissionForm, setShowSubmissionForm] = useState(false);
|
||||
|
||||
const handleSeek = (seconds: number) => {
|
||||
|
|
@ -115,6 +117,7 @@ export function SkipSegmentsView({ id }: { id: string }) {
|
|||
}}
|
||||
onSuccess={() => {
|
||||
setShowSubmissionForm(false);
|
||||
setCurrentOverlay("tidb-submission-success");
|
||||
// Optionally refresh segments here
|
||||
}}
|
||||
onCancel={() => setShowSubmissionForm(false)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue