diff options
| author | Brandon McConnell <brandon@dreamthinkbuild.com> | 2025-07-30 15:05:03 -0400 |
|---|---|---|
| committer | Brandon McConnell <brandon@dreamthinkbuild.com> | 2025-07-30 15:05:03 -0400 |
| commit | e3ecf4855a9dea317f4823bf1840703de7ec3f67 (patch) | |
| tree | 38ec422724ea3c12162fc4f6e29b3db2fba04bee /apps/web/src/components/editor/preview-panel.tsx | |
| parent | dbc1d2e1a3fc5a87b196f40d9c40ee29548d5264 (diff) | |
| download | opencut-e3ecf4855a9dea317f4823bf1840703de7ec3f67.tar.gz | |
Correct `blur-sm` ➞ `blur`
Diffstat (limited to 'apps/web/src/components/editor/preview-panel.tsx')
| -rw-r--r-- | apps/web/src/components/editor/preview-panel.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/web/src/components/editor/preview-panel.tsx b/apps/web/src/components/editor/preview-panel.tsx index 2c6cbf96..76eedb4f 100644 --- a/apps/web/src/components/editor/preview-panel.tsx +++ b/apps/web/src/components/editor/preview-panel.tsx @@ -211,7 +211,7 @@ export function PreviewPanel() { setDragState({ isDragging: true, elementId: element.id, - trackId: trackId, + trackId, startX: e.clientX, startY: e.clientY, initialElementX: element.x, @@ -274,7 +274,7 @@ export function PreviewPanel() { const renderBlurBackground = () => { if ( !activeProject?.backgroundType || - activeProject.backgroundType !== "blur-sm" || + activeProject.backgroundType !== "blur" || blurBackgroundElements.length === 0 ) { return null; @@ -474,7 +474,7 @@ export function PreviewPanel() { width: previewDimensions.width, height: previewDimensions.height, backgroundColor: - activeProject?.backgroundType === "blur-sm" + activeProject?.backgroundType === "blur" ? "transparent" : activeProject?.backgroundColor || "#000000", }} @@ -489,7 +489,7 @@ export function PreviewPanel() { renderElement(elementData, index) ) )} - {activeProject?.backgroundType === "blur-sm" && + {activeProject?.backgroundType === "blur" && blurBackgroundElements.length === 0 && activeElements.length > 0 && ( <div className="absolute bottom-2 left-2 right-2 bg-black/70 text-white text-xs p-2 rounded"> @@ -730,7 +730,7 @@ function FullscreenPreview({ width: previewDimensions.width, height: previewDimensions.height, backgroundColor: - activeProject?.backgroundType === "blur-sm" + activeProject?.backgroundType === "blur" ? "#1a1a1a" : activeProject?.backgroundColor || "#1a1a1a", }} @@ -745,7 +745,7 @@ function FullscreenPreview({ renderElement(elementData, index) ) )} - {activeProject?.backgroundType === "blur-sm" && + {activeProject?.backgroundType === "blur" && blurBackgroundElements.length === 0 && activeElements.length > 0 && ( <div className="absolute bottom-2 left-2 right-2 bg-black/70 text-white text-xs p-2 rounded"> |
