Add support for handle should still be displayed for hidden components in editor mode

This commit is contained in:
Nakul Nagargade 2025-02-18 10:40:24 +05:30
parent 05637ef281
commit 394f206609
2 changed files with 8 additions and 3 deletions

View file

@ -50,7 +50,12 @@ export const ConfigHandle = ({
className={`config-handle ${customClassName}`}
widget-id={id}
style={{
top: position === 'top' ? '-20px' : `${height - (CONFIG_HANDLE_HEIGHT + BUFFER_HEIGHT)}px`,
top:
componentType === 'Modal' && isModalOpen
? '0px'
: position === 'top'
? '-20px'
: `${height - (CONFIG_HANDLE_HEIGHT + BUFFER_HEIGHT)}px`,
visibility: _showHandle ? 'visible' : 'hidden',
left: '-1px',
}}
@ -65,7 +70,8 @@ export const ConfigHandle = ({
>
<span
style={{
background: componentType === 'Modal' && isModalOpen ? '#c6cad0' : '#4D72FA',
background:
visibility === false ? '#c6cad0' : componentType === 'Modal' && isModalOpen ? '#c6cad0' : '#4D72FA',
border: position === 'bottom' ? '1px solid white' : 'none',
}}
className="badge handle-content"

View file

@ -68,7 +68,6 @@ const WidgetWrapper = memo(
id={id}
widgetid={id}
style={{
// transform: `translate(332px, -134px)`,
// zIndex: mode === 'view' && widget.component.component == 'Datepicker' ? 2 : null,
...styles,
}}