Skip to content

Commit 7071777

Browse files
author
FalkWolsky
committed
Fixing Tag Display in Table
1 parent efed6da commit 7071777

File tree

1 file changed

+10
-3
lines changed
  • client/packages/lowcoder/src/comps/comps/tableComp/column/columnTypeComps

1 file changed

+10
-3
lines changed

client/packages/lowcoder/src/comps/comps/tableComp/column/columnTypeComps/columnTagsComp.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export const Wrapper = styled.div`
9696
width: 100%;
9797
height: 100%;
9898
}
99+
99100
.ant-select {
100101
height: 100%;
101102
.ant-select-selector {
@@ -145,6 +146,9 @@ export const Wrapper = styled.div`
145146
}
146147
}
147148
}
149+
.ant-tag {
150+
margin-left: 20px;
151+
}
148152
.ant-tag svg {
149153
margin-right: 4px;
150154
}
@@ -169,6 +173,7 @@ export const DropdownStyled = styled.div`
169173
`;
170174

171175
export const TagStyled = styled(Tag)`
176+
margin-right: 8px;
172177
svg {
173178
margin-right: 4px;
174179
}
@@ -259,9 +264,11 @@ export const ColumnTagsComp = (function () {
259264
// The actual eval value is of type number or boolean
260265
const tagText = String(tag);
261266
return (
262-
<TagStyled color={getTagColor(tagText, tagOptions)} icon={getTagIcon(tagText, tagOptions)} key={index} >
263-
{tagText}
264-
</TagStyled>
267+
<div>
268+
<TagStyled color={getTagColor(tagText, tagOptions)} icon={getTagIcon(tagText, tagOptions)} key={index} >
269+
{tagText}
270+
</TagStyled>
271+
</div>
265272
);
266273
});
267274
return view;

0 commit comments

Comments
 (0)