Update
This commit is contained in:
@@ -56,7 +56,7 @@ function SheetContent({
|
||||
<SheetPrimitive.Content
|
||||
data-slot="sheet-content"
|
||||
className={cn(
|
||||
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
||||
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
||||
side === "right" &&
|
||||
"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
||||
side === "left" &&
|
||||
|
||||
@@ -225,12 +225,12 @@ export default function TextSidebar({ isOpen, onClose }) {
|
||||
color: fillColor,
|
||||
textShadow:
|
||||
strokeWidth > 0
|
||||
? `
|
||||
-${strokeWidth * 0.6}px -${strokeWidth * 0.6}px 0 ${strokeColor},
|
||||
${strokeWidth * 0.6}px -${strokeWidth * 0.6}px 0 ${strokeColor},
|
||||
-${strokeWidth * 0.6}px ${strokeWidth * 0.6}px 0 ${strokeColor},
|
||||
${strokeWidth * 0.6}px ${strokeWidth * 0.6}px 0 ${strokeColor}
|
||||
`
|
||||
? Array.from({ length: 10 }, (_, i) => {
|
||||
const angle = (i * Math.PI * 2) / 8;
|
||||
const x = Math.cos(angle) * strokeWidth * 0.6;
|
||||
const y = Math.sin(angle) * strokeWidth * 0.6;
|
||||
return `${x.toFixed(1)}px ${y.toFixed(1)}px 0 ${strokeColor}`;
|
||||
}).join(', ')
|
||||
: 'none',
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user