feat: Add a close button to the annotation toolbar and ensure annotation mode is correctly reset upon removal.

This commit is contained in:
Yusuf İpek
2026-02-22 06:30:10 +03:00
parent fc047841cf
commit 87d6c0ab0a
2 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -3257,7 +3257,7 @@ export function VideoPageContent({ mode, videoId, projectId: propProjectId }: Vi
<span className="text-xs text-violet-400 font-medium">Annotation attached</span>
<button
className="ml-auto text-xs text-muted-foreground hover:text-destructive transition-colors"
onClick={() => setAnnotationStrokes(null)}
onClick={() => { setAnnotationStrokes(null); setIsAnnotating(false); }}
>
Remove
</button>