Skip to content

Commit 5b3b9b8

Browse files
author
Aqib Mirza
committed
feat: container fix
1 parent a4922bd commit 5b3b9b8

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

client/packages/lowcoder/src/comps/comps/tabs/tabbedContainerComp.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ const getStyle = (style: TabContainerStyleType) => {
6565
border: 1px solid ${style.border};
6666
border-radius: ${style.radius};
6767
overflow: hidden;
68-
margin: ${style.margin};
6968
padding: ${style.padding};
70-
width: ${widthCalculator(style.margin)};
71-
height: ${heightCalculator(style.margin)};
7269
7370
> .ant-tabs-content-holder > .ant-tabs-content > div > .react-grid-layout {
7471
background-color: ${style.background};
@@ -167,6 +164,7 @@ const TabbedContainer = (props: TabbedContainerProps) => {
167164
// log.debug("TabbedContainer. props: ", props);
168165

169166
return (
167+
<div style={{padding: props.style.margin}}>
170168
<StyledTabs
171169
activeKey={activeKey}
172170
$style={style}
@@ -214,6 +212,7 @@ const TabbedContainer = (props: TabbedContainerProps) => {
214212
);
215213
})}
216214
</StyledTabs>
215+
</div>
217216
);
218217
};
219218

client/packages/lowcoder/src/comps/comps/triContainerComp/triContainer.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ const getStyle = (style: ContainerStyleType) => {
1313
border-color: ${style.border};
1414
border-radius: ${style.radius};
1515
overflow: hidden;
16-
margin: ${style.margin};
16+
// margin: ${style.margin};
1717
padding: ${style.padding};
18-
width: ${widthCalculator(style.margin)};
19-
height: ${heightCalculator(style.margin)};
18+
// width: ${widthCalculator(style.margin)};
19+
// height: ${heightCalculator(style.margin)};
2020
`;
2121
};
2222

@@ -78,6 +78,7 @@ export function TriContainer(props: TriContainerProps) {
7878
const paddingWidth = isMobile ? 7 : 19;
7979

8080
return (
81+
<div style={{padding: style.margin}}>
8182
<Wrapper $style={style}>
8283
{showHeader && (
8384
<BackgroundColorContext.Provider value={container.style.headerBackground}>
@@ -128,5 +129,6 @@ export function TriContainer(props: TriContainerProps) {
128129
</BackgroundColorContext.Provider>
129130
)}
130131
</Wrapper>
132+
</div>
131133
);
132134
}

0 commit comments

Comments
 (0)