Fix: Chunk problem tag content cannot be displayed completely. #5076 (#5077)

### What problem does this PR solve?

Fix: Chunk problem tag content cannot be displayed completely. #5076

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu 2025-02-18 15:26:24 +08:00 committed by GitHub
parent 375e727f9a
commit 3356de55ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
import { PlusOutlined } from '@ant-design/icons';
import type { InputRef } from 'antd';
import { Input, Tag, theme } from 'antd';
import { Input, Tag, theme, Tooltip } from 'antd';
import { TweenOneGroup } from 'rc-tween-one';
import React, { useEffect, useRef, useState } from 'react';
@ -50,17 +50,19 @@ const EditTag = ({ value = [], onChange }: EditTagsProps) => {
const forMap = (tag: string) => {
return (
<Tag
key={tag}
className={styles.tag}
closable
onClose={(e) => {
e.preventDefault();
handleClose(tag);
}}
>
{tag}
</Tag>
<Tooltip title={tag}>
<Tag
key={tag}
className={styles.tag}
closable
onClose={(e) => {
e.preventDefault();
handleClose(tag);
}}
>
{tag}
</Tag>
</Tooltip>
);
};