minor fixes

This commit is contained in:
Pas 2026-01-19 17:54:34 -07:00
parent 1c1f876be3
commit 12f97e7501
2 changed files with 4 additions and 1 deletions

View file

@ -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} />

View file

@ -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)}