### What problem does this PR solve? Fix: Fixed the issue where tag content would overflow the container #8392 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
bb3d3f921a
commit
887651e5fa
1 changed files with 13 additions and 17 deletions
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue