mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-15 22:05:56 +08:00
### 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:
parent
375e727f9a
commit
3356de55ed
@ -1,6 +1,6 @@
|
|||||||
import { PlusOutlined } from '@ant-design/icons';
|
import { PlusOutlined } from '@ant-design/icons';
|
||||||
import type { InputRef } from 'antd';
|
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 { TweenOneGroup } from 'rc-tween-one';
|
||||||
import React, { useEffect, useRef, useState } from 'react';
|
import React, { useEffect, useRef, useState } from 'react';
|
||||||
|
|
||||||
@ -50,17 +50,19 @@ const EditTag = ({ value = [], onChange }: EditTagsProps) => {
|
|||||||
|
|
||||||
const forMap = (tag: string) => {
|
const forMap = (tag: string) => {
|
||||||
return (
|
return (
|
||||||
<Tag
|
<Tooltip title={tag}>
|
||||||
key={tag}
|
<Tag
|
||||||
className={styles.tag}
|
key={tag}
|
||||||
closable
|
className={styles.tag}
|
||||||
onClose={(e) => {
|
closable
|
||||||
e.preventDefault();
|
onClose={(e) => {
|
||||||
handleClose(tag);
|
e.preventDefault();
|
||||||
}}
|
handleClose(tag);
|
||||||
>
|
}}
|
||||||
{tag}
|
>
|
||||||
</Tag>
|
{tag}
|
||||||
|
</Tag>
|
||||||
|
</Tooltip>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user