style: model list type tag

This commit is contained in:
jialin
2024-12-13 12:13:17 +08:00
parent e3efda2764
commit 6e5e195a30
11 changed files with 121 additions and 30 deletions
+15 -2
View File
@@ -282,7 +282,12 @@ const Resources: React.FC = () => {
onClick={handleDeleteBatch}
disabled={!rowSelection.selectedRowKeys.length}
>
{intl.formatMessage({ id: 'common.button.delete' })}
<span>
{intl?.formatMessage?.({ id: 'common.button.delete' })}
{rowSelection.selectedRowKeys.length > 0 && (
<span>({rowSelection.selectedRowKeys?.length})</span>
)}
</span>
</Button>
</Space>
}
@@ -333,7 +338,15 @@ const Resources: React.FC = () => {
>
{_.map(record.labels, (item: any, index: string) => {
return (
<AutoTooltip key={index} className="m-r-0" maxWidth={120}>
<AutoTooltip
key={index}
className="m-r-0"
maxWidth={120}
style={{
paddingInline: 8,
borderRadius: 12
}}
>
{index}:{item}
</AutoTooltip>
);