Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: Fixed the issue where tag content would overflow the container #8392 (#8393)

balibabu887651e5fa36
diff --git a/web/src/components/edit-tag/index.tsx b/web/src/components/edit-tag/index.tsx
index 6a82351b34..676ba7ff9b 100644
--- a/web/src/components/edit-tag/index.tsx
+++ b/web/src/components/edit-tag/index.tsx
@@ -74,7 +74,7 @@ const EditTag = ({ value = [], onChange }: EditTagsProps) => {
};
return (
- <div className="flex gap-[8px] items-start">
+ <div>
{Array.isArray(tagChild) && tagChild.length > 0 && (
<TweenOneGroup
className={styles.tweenGroup}
@@ -96,23 +96,19 @@ const EditTag = ({ value = [], onChange }: EditTagsProps) => {
</TweenOneGroup>
)}
{inputVisible ? (
- <div className="w-[180px] mb-[8px]">
- <Input
- ref={inputRef}
- type="text"
- size="small"
- value={inputValue}
- onChange={handleInputChange}
- onBlur={handleInputConfirm}
- onPressEnter={handleInputConfirm}
- />
- </div>
+ <Input
+ ref={inputRef}
+ type="text"
+ size="small"
+ value={inputValue}
+ onChange={handleInputChange}
+ onBlur={handleInputConfirm}
+ onPressEnter={handleInputConfirm}
+ />
) : (
- <div className="mb-[8px]">
- <Tag onClick={showInput} style={tagPlusStyle}>
- <PlusOutlined />
- </Tag>
- </div>
+ <Tag onClick={showInput} style={tagPlusStyle}>
+ <PlusOutlined />
+ </Tag>
)}
</div>
);