Skip to content

Commit 44aa451

Browse files
fixed selected icon preview in controlButton
1 parent cf11e80 commit 44aa451

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/packages/lowcoder/src/comps/comps/meetingComp/controlButton.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,13 @@ const IconWrapper = styled.div<{ $style: any }>`
7777

7878
const IconScoutWrapper = styled.div<{ $style: any }>`
7979
display: flex;
80-
height: 100%;
8180
8281
${(props) => props.$style && getStyleIcon(props.$style)}
8382
`;
8483

8584
function getStyleIcon(style: any) {
8685
return css`
87-
svg {
86+
svg, img {
8887
width: ${style.size} !important;
8988
height: ${style.size} !important;
9089
}

client/packages/lowcoder/src/comps/controls/iconscoutControl.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const StyledDeleteInputIcon = styled(DeleteInputIcon)`
5151

5252
const StyledImage = styled.img`
5353
height: 100%;
54+
width: 100%;
5455
color: currentColor;
5556
`;
5657

0 commit comments

Comments
 (0)