From c6eef561b3aeeeb0907b1432e92ea01d7ca3354b Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 12 Jun 2026 22:47:37 -0700 Subject: [PATCH] Make organization setup card transparent --- src/components/ImageCropDialog.tsx | 14 +++----------- src/components/ProfileCard.tsx | 4 +++- src/components/onboarding/VerifierIdentityStep.tsx | 3 +-- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/components/ImageCropDialog.tsx b/src/components/ImageCropDialog.tsx index 45898cda..9b01af4d 100644 --- a/src/components/ImageCropDialog.tsx +++ b/src/components/ImageCropDialog.tsx @@ -6,7 +6,6 @@ import { Button } from '@/components/ui/button'; import { Slider } from '@/components/ui/slider'; import { ZoomIn, ZoomOut, RotateCcw } from 'lucide-react'; import { encodeImage } from '@/lib/resizeImage'; -import { cn } from '@/lib/utils'; interface ImageCropDialogProps { open: boolean; @@ -22,10 +21,6 @@ interface ImageCropDialogProps { * silently down-rezzed without opting in. */ maxOutputSize?: number; - /** Hide the crop selection outline. */ - hideCropBorder?: boolean; - /** Render the dialog container itself with sharp corners and no border. */ - sharpContainer?: boolean; onCancel: () => void; /** * Receives the cropped result as a `File` (JPEG or PNG, whichever @@ -35,7 +30,7 @@ interface ImageCropDialogProps { onCrop: (croppedFile: File) => void; } -export function ImageCropDialog({ open, imageSrc, aspect, title = 'Crop Image', maxOutputSize, hideCropBorder = false, sharpContainer = false, onCancel, onCrop }: ImageCropDialogProps) { +export function ImageCropDialog({ open, imageSrc, aspect, title = 'Crop Image', maxOutputSize, onCancel, onCrop }: ImageCropDialogProps) { const [crop, setCrop] = useState({ x: 0, y: 0 }); const [zoom, setZoom] = useState(1); const [croppedAreaPixels, setCroppedAreaPixels] = useState(null); @@ -73,7 +68,7 @@ export function ImageCropDialog({ open, imageSrc, aspect, title = 'Crop Image', return ( { if (!v) onCancel(); }}> - + {title} @@ -90,10 +85,7 @@ export function ImageCropDialog({ open, imageSrc, aspect, title = 'Crop Image', onCropComplete={onCropComplete} style={{ containerStyle: { borderRadius: 0 }, - cropAreaStyle: { - border: hideCropBorder ? '0' : '2px solid hsl(var(--primary))', - borderRadius: 0, - }, + cropAreaStyle: { border: '2px solid hsl(var(--primary))' }, }} /> diff --git a/src/components/ProfileCard.tsx b/src/components/ProfileCard.tsx index 29f14aa5..83dfb4b1 100644 --- a/src/components/ProfileCard.tsx +++ b/src/components/ProfileCard.tsx @@ -87,6 +87,7 @@ interface ProfileField { } interface ProfileCardProps { + className?: string; pubkey?: string; metadata: Partial; onChange?: (patch: Partial) => void; @@ -116,6 +117,7 @@ interface ProfileCardProps { } export function ProfileCard({ + className, pubkey, metadata, onChange, @@ -153,7 +155,7 @@ export function ProfileCard({ onExtraFieldsChange?.((extraFields ?? []).map((f, idx) => idx === i ? { ...f, [key]: val } : f)); return ( -
+
{/* Banner */} {editable && onPasteUrl ? ( diff --git a/src/components/onboarding/VerifierIdentityStep.tsx b/src/components/onboarding/VerifierIdentityStep.tsx index 7c3ba6a0..3b9ab5a6 100644 --- a/src/components/onboarding/VerifierIdentityStep.tsx +++ b/src/components/onboarding/VerifierIdentityStep.tsx @@ -191,8 +191,6 @@ export function VerifierIdentityStep({ : t('onboarding.verifier.identity.cropBanner') } maxOutputSize={cropState.field === 'banner' ? 1500 : 512} - hideCropBorder - sharpContainer onCancel={handleCropCancel} onCrop={handleCropConfirm} /> @@ -200,6 +198,7 @@ export function VerifierIdentityStep({