fix(style): table cell overflow

This commit is contained in:
jialin
2026-06-03 15:50:06 +08:00
committed by jialin
parent 9f7a99f370
commit 9541f49f39
11 changed files with 40 additions and 12 deletions
@@ -195,7 +195,11 @@ const useInstancesColumns = ({
showTitle: false
},
render: (text: string, record: ListItem) => (
<AutoTooltip ghost style={{ maxWidth: 360 }}>
<AutoTooltip
ghost
title={<span>{record.displayName || text}</span>}
maxWidth={300}
>
<span className="text-primary">{record.displayName || text}</span>
</AutoTooltip>
)
@@ -312,7 +316,7 @@ const useInstancesColumns = ({
ellipsis: {
showTitle: false
},
width: 260,
width: 300,
render: (_text: string, record: ListItem) => renderInstanceType(record)
},
{
@@ -44,7 +44,11 @@ const usePublicKeyColumns = ({
showTitle: false
},
render: (text: string, record: ListItem) => (
<AutoTooltip ghost style={{ maxWidth: 360 }}>
<AutoTooltip
ghost
style={{ maxWidth: 360 }}
title={<span>{record.displayName || text}</span>}
>
<span className="text-primary">{record.displayName || text}</span>
</AutoTooltip>
)
@@ -55,7 +55,11 @@ const useStorageTypeColumns = ({
sorter: true,
ellipsis: { showTitle: false },
render: (text: string, record: ListItem) => (
<AutoTooltip ghost minWidth={20}>
<AutoTooltip
ghost
minWidth={20}
title={<span>{record.displayName || text}</span>}
>
<span className="text-primary">{record.displayName || text}</span>
</AutoTooltip>
)
@@ -29,7 +29,11 @@ const useStorageColumns = ({
showTitle: false
},
render: (text: string, record: ListItem) => (
<AutoTooltip ghost style={{ maxWidth: 360 }}>
<AutoTooltip
ghost
style={{ maxWidth: 360 }}
title={<span>{record.displayName || text}</span>}
>
<span className="text-primary">{record.displayName || text}</span>
</AutoTooltip>
)