Update
This commit is contained in:
@@ -4,8 +4,8 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@
|
|||||||
import { Sheet, SheetContent, SheetHeader, SheetTitle } from '@/components/ui/sheet';
|
import { Sheet, SheetContent, SheetHeader, SheetTitle } from '@/components/ui/sheet';
|
||||||
import { Textarea } from '@/components/ui/textarea';
|
import { Textarea } from '@/components/ui/textarea';
|
||||||
import { useMitt } from '@/plugins/MittContext';
|
import { useMitt } from '@/plugins/MittContext';
|
||||||
import useVideoEditorStore from '@/stores/VideoEditorStore';
|
|
||||||
import useMediaStore from '@/stores/MediaStore';
|
import useMediaStore from '@/stores/MediaStore';
|
||||||
|
import useVideoEditorStore from '@/stores/VideoEditorStore';
|
||||||
import { Bold, Italic, Minus, Plus, Type } from 'lucide-react';
|
import { Bold, Italic, Minus, Plus, Type } from 'lucide-react';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ export default function TextSidebar({ isOpen, onClose }) {
|
|||||||
elementId: selectedTextElement.id,
|
elementId: selectedTextElement.id,
|
||||||
updates: { text: newText },
|
updates: { text: newText },
|
||||||
});
|
});
|
||||||
|
|
||||||
// Update MediaStore to maintain single source of truth
|
// Update MediaStore to maintain single source of truth
|
||||||
updateCurrentCaption(newText);
|
updateCurrentCaption(newText);
|
||||||
}
|
}
|
||||||
@@ -303,7 +303,7 @@ export default function TextSidebar({ isOpen, onClose }) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Note about transformer resize */}
|
{/* Note about transformer resize */}
|
||||||
<div className="mt-1 text-center text-xs text-blue-600">💡 You can also resize by dragging the corners</div>
|
{/* <div className="mt-1 text-center text-xs text-blue-600">💡 You can also resize by dragging the corners</div> */}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Font Style Controls */}
|
{/* Font Style Controls */}
|
||||||
|
|||||||
Reference in New Issue
Block a user