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