show visibility border only for viewer

This commit is contained in:
Nakul Nagargade 2025-03-19 15:30:47 +05:30
parent 9f3750eb2e
commit 227970a1d0

View file

@ -54,7 +54,7 @@ const WidgetWrapper = memo(
height: visibility === false ? '10px' : `${height}px`,
transform: `translate(${layoutData.left * gridWidth}px, ${layoutData.top}px)`,
WebkitFontSmoothing: 'antialiased',
border: visibility === false ? `1px solid var(--border-default)` : 'none',
border: visibility === false && mode === 'edit' ? `1px solid var(--border-default)` : 'none',
};
if (!componentType) return null;