浏览代码

feat: add red corner mark to Badge component for marketplace plugins (#18162)

tags/1.3.0
Yeuoly 6 个月前
父节点
当前提交
640ee80010
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      web/app/components/plugins/plugin-item/index.tsx

+ 4
- 1
web/app/components/plugins/plugin-item/index.tsx 查看文件

{!isDifyVersionCompatible && <Tooltip popupContent={ {!isDifyVersionCompatible && <Tooltip popupContent={
t('plugin.difyVersionNotCompatible', { minimalDifyVersion: declarationMeta.minimum_dify_version }) t('plugin.difyVersionNotCompatible', { minimalDifyVersion: declarationMeta.minimum_dify_version })
}><RiErrorWarningLine color='red' className="ml-0.5 h-4 w-4 shrink-0 text-text-accent" /></Tooltip>} }><RiErrorWarningLine color='red' className="ml-0.5 h-4 w-4 shrink-0 text-text-accent" /></Tooltip>}
<Badge className='ml-1 shrink-0' text={source === PluginSource.github ? plugin.meta!.version : plugin.version} />
<Badge className='ml-1 shrink-0'
text={source === PluginSource.github ? plugin.meta!.version : plugin.version}
hasRedCornerMark={(source === PluginSource.marketplace) && !!plugin.latest_unique_identifier && plugin.latest_unique_identifier !== plugin_unique_identifier}
/>
</div> </div>
<div className='flex items-center justify-between'> <div className='flex items-center justify-between'>
<Description text={descriptionText} descriptionLineRows={1}></Description> <Description text={descriptionText} descriptionLineRows={1}></Description>

正在加载...
取消
保存