summaryrefslogtreecommitdiff
path: root/apps/web/src/components/background-settings.tsx
diff options
context:
space:
mode:
authorBrandon McConnell <brandon@dreamthinkbuild.com>2025-07-30 13:15:09 -0400
committerBrandon McConnell <brandon@dreamthinkbuild.com>2025-07-30 13:15:09 -0400
commitdf1e80b5287ff71867bad1a1bfebb102cef7d5bf (patch)
tree2384e04490dd71a72cbf135c366012f74b71c0ca /apps/web/src/components/background-settings.tsx
parent1c20027d33bcf303d6a9b40970cd8216c489f0d5 (diff)
downloadopencut-df1e80b5287ff71867bad1a1bfebb102cef7d5bf.tar.gz
Lay groundwork for Tailwind v4 upgrade
Diffstat (limited to 'apps/web/src/components/background-settings.tsx')
-rw-r--r--apps/web/src/components/background-settings.tsx16
1 files changed, 8 insertions, 8 deletions
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() {
<Button
variant="text"
size="icon"
- className="!size-4 border border-muted-foreground"
+ className="size-4! border border-muted-foreground"
>
- <BackgroundIcon className="!size-3" />
+ <BackgroundIcon className="size-3!" />
</Button>
</PopoverTrigger>
- <PopoverContent className="flex flex-col items-start w-[20rem] h-[16rem] overflow-hidden p-0">
+ <PopoverContent className="flex flex-col items-start w-[20rem] h-64 overflow-hidden p-0">
<div className="flex items-center justify-between w-full gap-2 z-10 bg-popover p-3">
<h2 className="text-sm">Background</h2>
<div className="flex items-center gap-2 text-sm">
@@ -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 (
<div className="w-full h-full">
- <div className="absolute top-8 left-0 w-[calc(100%-1rem)] h-12 bg-gradient-to-b from-popover to-transparent pointer-events-none" />
+ <div className="absolute top-8 left-0 w-[calc(100%-1rem)] h-12 bg-linear-to-b from-popover to-transparent pointer-events-none" />
<div className="grid grid-cols-4 gap-2 w-full h-full p-3 pt-0 overflow-auto">
<div className="w-full aspect-square rounded-sm cursor-pointer border border-foreground/15 hover:border-primary flex items-center justify-center">
<PipetteIcon className="size-4" />