From fae968a54147a774725b16a13b7a68787be48715 Mon Sep 17 00:00:00 2001 From: Satyam <95536056+Satyam-Rastogi@users.noreply.github.com> Date: Fri, 13 Feb 2026 05:58:46 +0530 Subject: [PATCH] Fix PropertyDetailDrawer close button interactivity and corner transparency leak --- src/components/SpotlightCard.jsx | 11 ++++++++--- src/components/maps/PropertyDetailDrawer.jsx | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/components/SpotlightCard.jsx b/src/components/SpotlightCard.jsx index 99be2ce..2d78cbb 100644 --- a/src/components/SpotlightCard.jsx +++ b/src/components/SpotlightCard.jsx @@ -1,6 +1,6 @@ import React, { useRef, useState } from 'react'; -export const SpotlightCard = ({ children, className = "", spotlightColor = "rgba(255, 255, 255, 0.25)" }) => { +export const SpotlightCard = ({ children, className = "", spotlightColor = "rgba(255, 255, 255, 0.25)", rounded = "rounded-3xl" }) => { const divRef = useRef(null); const [position, setPosition] = useState({ x: 0, y: 0 }); const [opacity, setOpacity] = useState(0); @@ -30,6 +30,11 @@ export const SpotlightCard = ({ children, className = "", spotlightColor = "rgba setOpacity(0); }; + // Calculate inner rounding based on outer rounding + // If rounded-3xl (24px), inner should be ~22px + // If rounded-none (0px), inner should be 0px + const innerRounded = rounded === "rounded-none" ? "rounded-none" : "rounded-[22px]"; + return (
+
{/* Surface Shine (Subtle top sheen) */}
- + {/* Header */}
@@ -294,7 +294,7 @@ const PropertyDetailDrawer = ({ isOpen, onClose, data, newLocation, onSave, load