Skip to content

Commit 045141c

Browse files
committedOct 2, 2024
fix table not working in comp docs
1 parent 1d95e4c commit 045141c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎client/packages/lowcoder/src/comps/comps/tableComp/tableCompView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const BackgroundWrapper = styled.div<{
160160
border-style: ${(props) => props.$style.borderStyle} !important;
161161
border-width: ${(props) => `${props.$style.borderWidth} !important`};
162162
border-color: ${(props) => `${props.$style.border} !important`};
163-
height: calc(100% - ${(props) => getVerticalMargin(props.$style.margin.split(' '))});
163+
height: calc(100% - ${(props) => props.$style.margin && getVerticalMargin(props.$style.margin.split(' '))});
164164
overflow: hidden;
165165
166166
> div.table-scrollbar-wrapper {

0 commit comments

Comments
 (0)