From 12f97e75014ae68e4ef7a98bfede402cd768c318 Mon Sep 17 00:00:00 2001
From: Pas <74743263+Pasithea0@users.noreply.github.com>
Date: Mon, 19 Jan 2026 17:54:34 -0700
Subject: [PATCH] minor fixes
---
src/components/player/atoms/Settings.tsx | 2 +-
src/components/player/atoms/settings/SkipSegmentsView.tsx | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/components/player/atoms/Settings.tsx b/src/components/player/atoms/Settings.tsx
index f344346d..8e3493b5 100644
--- a/src/components/player/atoms/Settings.tsx
+++ b/src/components/player/atoms/Settings.tsx
@@ -146,7 +146,7 @@ function SettingsOverlay({ id }: { id: string }) {
id={id}
path="/playback/skip-segments"
width={343}
- height={496}
+ height={446}
>
diff --git a/src/components/player/atoms/settings/SkipSegmentsView.tsx b/src/components/player/atoms/settings/SkipSegmentsView.tsx
index d6873c87..ced3e2b8 100644
--- a/src/components/player/atoms/settings/SkipSegmentsView.tsx
+++ b/src/components/player/atoms/settings/SkipSegmentsView.tsx
@@ -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)}