fix plugin card

This commit is contained in:
JzoNg 2025-01-09 17:46:34 +08:00
parent 4042c1f6c4
commit dc6e02f3ec

View File

@ -130,11 +130,15 @@ const PluginItem: FC<Props> = ({
packageName={name}
packageNameClassName='w-auto max-w-[150px]'
/>
<div className='mx-2 text-text-quaternary system-xs-regular'>·</div>
<div className='flex text-text-tertiary system-xs-regular space-x-1'>
<RiLoginCircleLine className='w-4 h-4' />
<span>{t('plugin.endpointsEnabled', { num: endpoints_active })}</span>
</div>
{category === PluginType.extension && (
<>
<div className='mx-2 text-text-quaternary system-xs-regular'>·</div>
<div className='flex text-text-tertiary system-xs-regular space-x-1'>
<RiLoginCircleLine className='w-4 h-4' />
<span>{t('plugin.endpointsEnabled', { num: endpoints_active })}</span>
</div>
</>
)}
</div>
<div className='flex items-center'>
@ -154,7 +158,7 @@ const PluginItem: FC<Props> = ({
&& <>
<a href={`${MARKETPLACE_URL_PREFIX}/plugins/${author}/${name}`} target='_blank' className='flex items-center gap-0.5'>
<div className='text-text-tertiary system-2xs-medium-uppercase'>{t('plugin.from')} <span className='text-text-secondary'>marketplace</span></div>
<RiArrowRightUpLine className='w-3 h-3' />
<RiArrowRightUpLine className='w-3 h-3 text-text-tertiary' />
</a>
</>
}