|
|
@ -88,10 +88,10 @@ const Icon = ({ iconRecord, verticalIconPlugin, contextMenuAction, theme }: Icon |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
<div className='d-flex py-1' style={{ width: 'auto', placeContent: stylePC }}> |
|
|
|
<div className='d-flex py-1' style={{ width: 'auto', placeContent: stylePC }}> |
|
|
|
{iconRecord.active && <div |
|
|
|
<div |
|
|
|
className='pt-1 bg-primary' |
|
|
|
className={`pt-1 ${iconRecord.active ? 'bg-primary' : 'bg-transparent'}`} |
|
|
|
style={{ width: "6px", height: "36px", position: 'relative', borderRadius: '24%' }} |
|
|
|
style={{ width: "6px", height: "36px", position: 'relative', borderRadius: '24%' }} |
|
|
|
></div>} |
|
|
|
></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} |
|
|
@ -100,7 +100,11 @@ const Icon = ({ iconRecord, verticalIconPlugin, contextMenuAction, theme }: Icon |
|
|
|
<div |
|
|
|
<div |
|
|
|
className={`remixui_icon m-0 pt-1`} |
|
|
|
className={`remixui_icon m-0 pt-1`} |
|
|
|
onClick={() => { |
|
|
|
onClick={() => { |
|
|
|
;(verticalIconPlugin as any).toggle(name) |
|
|
|
if (iconRecord.pinned) { |
|
|
|
|
|
|
|
console.log('called an already pinned plugin') |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
(verticalIconPlugin as any).toggle(name) |
|
|
|
|
|
|
|
} |
|
|
|
}} |
|
|
|
}} |
|
|
|
{...{ plugin: name }} |
|
|
|
{...{ plugin: name }} |
|
|
|
onContextMenu={(e: any) => { |
|
|
|
onContextMenu={(e: any) => { |
|
|
@ -133,6 +137,10 @@ const Icon = ({ iconRecord, verticalIconPlugin, contextMenuAction, theme }: Icon |
|
|
|
contextMenuAction={contextMenuAction} |
|
|
|
contextMenuAction={contextMenuAction} |
|
|
|
/> |
|
|
|
/> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
className={`pt-1 ${iconRecord.pinned ? 'bg-primary' : 'bg-transparent'}`} |
|
|
|
|
|
|
|
style={{ width: "6px", height: "36px", position: 'relative', borderRadius: '24%', marginLeft: 'auto' }} |
|
|
|
|
|
|
|
></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</> |
|
|
|
</> |
|
|
|
) |
|
|
|
) |
|
|
|