fix: copy button do not work

This commit is contained in:
jialin
2026-02-11 15:30:35 +08:00
parent 2ba94f7524
commit e66de732ac
3 changed files with 124 additions and 42 deletions
+3 -7
View File
@@ -53,7 +53,8 @@ const RowWrapper = styled.div`
const InfoItem = styled.div`
display: grid;
grid-template-columns: max-content 1fr;
align-items: center;
grid-template-columns: max-content minmax(0, 1fr);
gap: 8px;
.label {
color: var(--ant-color-text-tertiary);
@@ -136,12 +137,7 @@ export const VersionItem: React.FC<VersionItemProps> = ({ data }) => {
<span className="label">
{intl.formatMessage({ id: 'backend.imageName' })}:
</span>
<CopyButton
text={data.image_name}
ellipsis={{
tooltip: !data.is_built_in ? data.image_name : false
}}
>
<CopyButton text={data.image_name} type="link">
{data.is_built_in
? intl.formatMessage({ id: 'backend.versionInfo.autoImage' })
: data.image_name}