|
|
@ -84,15 +84,22 @@ const Icon = ({iconRecord, verticalIconPlugin, contextMenuAction, theme}: IconPr |
|
|
|
} |
|
|
|
} |
|
|
|
}, []) |
|
|
|
}, []) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const stylePC = iconRecord.active ? 'flex-start' : 'center' |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
|
|
|
|
<div className='d-flex py-1' style={{width: 'auto', placeContent: stylePC}}>
|
|
|
|
|
|
|
|
{iconRecord.active && <div |
|
|
|
|
|
|
|
className='pt-1 bg-primary' |
|
|
|
|
|
|
|
style={{width: "6px", height: "36px", position: 'relative', borderRadius: '24%'}} |
|
|
|
|
|
|
|
></div>} |
|
|
|
<CustomTooltip |
|
|
|
<CustomTooltip |
|
|
|
placement={name === 'settings' ? 'right' : name === 'search' ? 'top' : name === 'udapp' ? 'bottom' : 'top'} |
|
|
|
placement={name === 'settings' ? 'right' : name === 'search' ? 'top' : name === 'udapp' ? 'bottom' : 'top'} |
|
|
|
tooltipText={title} |
|
|
|
tooltipText={title} |
|
|
|
delay={{show: 1000, hide: 0}} |
|
|
|
delay={{show: 1000, hide: 0}} |
|
|
|
> |
|
|
|
> |
|
|
|
<div |
|
|
|
<div |
|
|
|
className={`remixui_icon m-2 pt-1`} |
|
|
|
className={`remixui_icon m-0 pt-1`} |
|
|
|
onClick={() => { |
|
|
|
onClick={() => { |
|
|
|
;(verticalIconPlugin as any).toggle(name) |
|
|
|
;(verticalIconPlugin as any).toggle(name) |
|
|
|
}} |
|
|
|
}} |
|
|
@ -127,6 +134,7 @@ const Icon = ({iconRecord, verticalIconPlugin, contextMenuAction, theme}: IconPr |
|
|
|
contextMenuAction={contextMenuAction} |
|
|
|
contextMenuAction={contextMenuAction} |
|
|
|
/> |
|
|
|
/> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
|
|
|
|
</div> |
|
|
|
</> |
|
|
|
</> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|