Skip to content

Commit 9726857

Browse files
fixed component docs for iconComp
1 parent 405537d commit 9726857

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

client/packages/lowcoder/src/comps/comps/iconComp.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ const Container = styled.div<{
4141
${(props) =>
4242
props.$style &&
4343
css`
44-
height: calc(100% - ${props.$style.margin});
45-
width: calc(100% - ${props.$style.margin});
46-
padding: ${props.$style.padding};
44+
height: calc(100% - ${props.$style.margin ?? '0px'});
45+
width: calc(100% - ${props.$style.margin ?? '0px'});
46+
padding: ${props.$style.padding ?? '0px'};
4747
margin: ${props.$style.margin};
4848
border: ${props.$style.borderWidth} solid ${props.$style.border};
4949
border-radius: ${props.$style.radius};

client/packages/lowcoder/src/pages/ComponentDoc/examples/MediaComp/Icons.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ export default function IconExample() {
1010
>
1111
<Example
1212
title="Icon"
13+
width={'80px'}
14+
height={'80px'}
1315
config={{
1416
icon: "/icon:solid/align-justify",
1517
iconSize: "20",
18+
autoHeight: false,
1619
}}
1720
compFactory={IconComp}
1821
/>

0 commit comments

Comments
 (0)