From df1e80b5287ff71867bad1a1bfebb102cef7d5bf Mon Sep 17 00:00:00 2001 From: Brandon McConnell Date: Wed, 30 Jul 2025 13:15:09 -0400 Subject: Lay groundwork for Tailwind v4 upgrade --- apps/web/src/components/background-settings.tsx | 16 ++++---- .../src/components/editor/media-panel/tabbar.tsx | 6 +-- .../components/editor/media-panel/views/media.tsx | 2 +- apps/web/src/components/editor/preview-panel.tsx | 26 ++++++------- .../editor/properties-panel/text-properties.tsx | 4 +- apps/web/src/components/editor/snap-indicator.tsx | 2 +- apps/web/src/components/editor/speed-control.tsx | 2 +- apps/web/src/components/editor/timeline/index.tsx | 14 +++---- .../editor/timeline/timeline-element.tsx | 2 +- .../editor/timeline/timeline-playhead.tsx | 4 +- .../web/src/components/keyboard-shortcuts-help.tsx | 2 +- apps/web/src/components/landing/handlebars.tsx | 4 +- apps/web/src/components/onboarding.tsx | 2 +- apps/web/src/components/ui/alert-dialog.tsx | 2 +- apps/web/src/components/ui/badge.tsx | 6 +-- apps/web/src/components/ui/button.tsx | 12 +++--- apps/web/src/components/ui/calendar.tsx | 2 +- apps/web/src/components/ui/carousel.tsx | 4 +- apps/web/src/components/ui/chart.tsx | 6 +-- apps/web/src/components/ui/checkbox.tsx | 2 +- apps/web/src/components/ui/command.tsx | 4 +- apps/web/src/components/ui/context-menu.tsx | 6 +-- apps/web/src/components/ui/dialog.tsx | 6 +-- apps/web/src/components/ui/draggable-item.tsx | 6 +-- apps/web/src/components/ui/dropdown-menu.tsx | 6 +-- apps/web/src/components/ui/hover-card.tsx | 2 +- .../src/components/ui/image-timeline-treatment.tsx | 4 +- apps/web/src/components/ui/input-otp.tsx | 4 +- apps/web/src/components/ui/input.tsx | 2 +- apps/web/src/components/ui/menubar.tsx | 16 ++++---- apps/web/src/components/ui/navigation-menu.tsx | 8 ++-- apps/web/src/components/ui/pagination.tsx | 2 +- apps/web/src/components/ui/popover.tsx | 2 +- apps/web/src/components/ui/radio-group.tsx | 2 +- apps/web/src/components/ui/resizable.tsx | 2 +- apps/web/src/components/ui/scroll-area.tsx | 4 +- apps/web/src/components/ui/select.tsx | 8 ++-- apps/web/src/components/ui/separator.tsx | 2 +- apps/web/src/components/ui/sheet.tsx | 2 +- apps/web/src/components/ui/sidebar.tsx | 44 +++++++++++----------- apps/web/src/components/ui/slider.tsx | 2 +- apps/web/src/components/ui/sponsor-button.tsx | 2 +- apps/web/src/components/ui/switch.tsx | 2 +- apps/web/src/components/ui/table.tsx | 2 +- apps/web/src/components/ui/tabs.tsx | 4 +- apps/web/src/components/ui/textarea.tsx | 2 +- apps/web/src/components/ui/toast.tsx | 8 ++-- apps/web/src/components/ui/toggle.tsx | 4 +- 48 files changed, 139 insertions(+), 139 deletions(-) (limited to 'apps/web/src/components') diff --git a/apps/web/src/components/background-settings.tsx b/apps/web/src/components/background-settings.tsx index a640dc4c..2a5a3ac0 100644 --- a/apps/web/src/components/background-settings.tsx +++ b/apps/web/src/components/background-settings.tsx @@ -7,7 +7,7 @@ import { colors } from "@/data/colors"; import { useProjectStore } from "@/stores/project-store"; import { PipetteIcon } from "lucide-react"; -type BackgroundTab = "color" | "blur"; +type BackgroundTab = "color" | "blur-sm"; export function BackgroundSettings() { const { activeProject, updateBackgroundType } = useProjectStore(); @@ -20,7 +20,7 @@ export function BackgroundSettings() { }; const handleBlurSelect = (blurIntensity: number) => { - updateBackgroundType("blur", { blurIntensity }); + updateBackgroundType("blur-sm", { blurIntensity }); }; const tabs = [ @@ -30,7 +30,7 @@ export function BackgroundSettings() { }, { label: "Blur", - value: "blur", + value: "blur-sm", }, ]; @@ -40,12 +40,12 @@ export function BackgroundSettings() { - +

Background

@@ -60,7 +60,7 @@ export function BackgroundSettings() { activeProject?.backgroundColor || "#000000", }); } else { - updateBackgroundType("blur", { + updateBackgroundType("blur-sm", { blurIntensity: activeProject?.blurIntensity || 8, }); } @@ -100,7 +100,7 @@ function ColorView({ }) { return (
-
+
diff --git a/apps/web/src/components/editor/media-panel/tabbar.tsx b/apps/web/src/components/editor/media-panel/tabbar.tsx index bce84a46..92482559 100644 --- a/apps/web/src/components/editor/media-panel/tabbar.tsx +++ b/apps/web/src/components/editor/media-panel/tabbar.tsx @@ -82,7 +82,7 @@ export function TabBar() { onClick={() => setActiveTab(tabKey)} key={tabKey} > - + {tab.label}
); @@ -114,10 +114,10 @@ function ScrollButton({
); diff --git a/apps/web/src/components/editor/media-panel/views/media.tsx b/apps/web/src/components/editor/media-panel/views/media.tsx index f218dc14..d1533736 100644 --- a/apps/web/src/components/editor/media-panel/views/media.tsx +++ b/apps/web/src/components/editor/media-panel/views/media.tsx @@ -169,7 +169,7 @@ export function MediaView() { if (item.type === "audio") { return ( -
+
Audio {item.duration && ( diff --git a/apps/web/src/components/editor/preview-panel.tsx b/apps/web/src/components/editor/preview-panel.tsx index 639858d0..2c6cbf96 100644 --- a/apps/web/src/components/editor/preview-panel.tsx +++ b/apps/web/src/components/editor/preview-panel.tsx @@ -274,7 +274,7 @@ export function PreviewPanel() { const renderBlurBackground = () => { if ( !activeProject?.backgroundType || - activeProject.backgroundType !== "blur" || + activeProject.backgroundType !== "blur-sm" || blurBackgroundElements.length === 0 ) { return null; @@ -392,7 +392,7 @@ export function PreviewPanel() { return (
🎬
@@ -474,7 +474,7 @@ export function PreviewPanel() { width: previewDimensions.width, height: previewDimensions.height, backgroundColor: - activeProject?.backgroundType === "blur" + activeProject?.backgroundType === "blur-sm" ? "transparent" : activeProject?.backgroundColor || "#000000", }} @@ -489,7 +489,7 @@ export function PreviewPanel() { renderElement(elementData, index) ) )} - {activeProject?.backgroundType === "blur" && + {activeProject?.backgroundType === "blur-sm" && blurBackgroundElements.length === 0 && activeElements.length > 0 && (
@@ -675,7 +675,7 @@ function FullscreenToolbar({ style={{ width: `${progress}%` }} />
@@ -684,11 +684,11 @@ function FullscreenToolbar({
); @@ -722,7 +722,7 @@ function FullscreenPreview({ getTotalDuration: () => number; }) { return ( -
+
0 && (
@@ -868,7 +868,7 @@ function PreviewToolbar({
diff --git a/apps/web/src/components/editor/properties-panel/text-properties.tsx b/apps/web/src/components/editor/properties-panel/text-properties.tsx index e147ea65..61dd806b 100644 --- a/apps/web/src/components/editor/properties-panel/text-properties.tsx +++ b/apps/web/src/components/editor/properties-panel/text-properties.tsx @@ -25,7 +25,7 @@ export function TextProperties({