|
|
@ -44,19 +44,6 @@ const RemixUIPanelHeader = (props: RemixPanelProps) => { |
|
|
|
{plugin?.profile?.name && <FormattedMessage id={`${plugin.profile.name}.displayName`} defaultMessage={plugin?.profile?.displayName || plugin?.profile?.name} />} |
|
|
|
{plugin?.profile?.name && <FormattedMessage id={`${plugin.profile.name}.displayName`} defaultMessage={plugin?.profile?.displayName || plugin?.profile?.name} />} |
|
|
|
</h6> |
|
|
|
</h6> |
|
|
|
<div className="d-flex flex-row"> |
|
|
|
<div className="d-flex flex-row"> |
|
|
|
{ |
|
|
|
|
|
|
|
plugin && plugin.profile.name !== 'filePanel' && ( |
|
|
|
|
|
|
|
<RenderIfNot condition={plugin.profile.name === 'filePanel'}> |
|
|
|
|
|
|
|
<RenderIf condition={plugin.pinned}> |
|
|
|
|
|
|
|
<div className='d-flex' data-id="movePluginToLeft" onClick={unPinPlugin}> |
|
|
|
|
|
|
|
<CustomTooltip placement="auto-end" tooltipId="unPinnedMsg" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="panel.unPinnedMsg" />}> |
|
|
|
|
|
|
|
<i aria-hidden="true" className="mt-1 px-2 fas fa-solid fa-square-left"></i> |
|
|
|
|
|
|
|
</CustomTooltip> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</RenderIf> |
|
|
|
|
|
|
|
</RenderIfNot> |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
<div className="d-flex flex-row"> |
|
|
|
<div className="d-flex flex-row"> |
|
|
|
{plugin?.profile?.maintainedBy?.toLowerCase() === 'remix' ? ( |
|
|
|
{plugin?.profile?.maintainedBy?.toLowerCase() === 'remix' ? ( |
|
|
|
<CustomTooltip placement="auto-end" tooltipId="maintainedByTooltip" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="panel.maintainedByRemix" />}> |
|
|
|
<CustomTooltip placement="auto-end" tooltipId="maintainedByTooltip" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="panel.maintainedByRemix" />}> |
|
|
@ -75,6 +62,14 @@ const RemixUIPanelHeader = (props: RemixPanelProps) => { |
|
|
|
{ |
|
|
|
{ |
|
|
|
plugin && plugin.profile.name !== 'filePanel' && ( |
|
|
|
plugin && plugin.profile.name !== 'filePanel' && ( |
|
|
|
<RenderIfNot condition={plugin.profile.name === 'filePanel'}> |
|
|
|
<RenderIfNot condition={plugin.profile.name === 'filePanel'}> |
|
|
|
|
|
|
|
<> |
|
|
|
|
|
|
|
<RenderIf condition={plugin.pinned}> |
|
|
|
|
|
|
|
<div className='d-flex' data-id="movePluginToLeft" onClick={unPinPlugin}> |
|
|
|
|
|
|
|
<CustomTooltip placement="auto-end" tooltipId="unPinnedMsg" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="panel.unPinnedMsg" />}> |
|
|
|
|
|
|
|
<i aria-hidden="true" className="mt-1 px-2 fas fa-solid fa-square-left"></i> |
|
|
|
|
|
|
|
</CustomTooltip> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</RenderIf> |
|
|
|
<RenderIfNot condition={plugin.pinned}> |
|
|
|
<RenderIfNot condition={plugin.pinned}> |
|
|
|
<div className='d-flex' data-id="movePluginToRight" onClick={pinPlugin}> |
|
|
|
<div className='d-flex' data-id="movePluginToRight" onClick={pinPlugin}> |
|
|
|
<CustomTooltip placement="auto-end" tooltipId="pinnedMsg" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="panel.pinnedMsg" />}> |
|
|
|
<CustomTooltip placement="auto-end" tooltipId="pinnedMsg" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="panel.pinnedMsg" />}> |
|
|
@ -82,6 +77,7 @@ const RemixUIPanelHeader = (props: RemixPanelProps) => { |
|
|
|
</CustomTooltip> |
|
|
|
</CustomTooltip> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</RenderIfNot> |
|
|
|
</RenderIfNot> |
|
|
|
|
|
|
|
</> |
|
|
|
</RenderIfNot> |
|
|
|
</RenderIfNot> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|