File tree 2 files changed +7
-6
lines changed
client/packages/lowcoder/src/comps/comps
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -65,10 +65,7 @@ const getStyle = (style: TabContainerStyleType) => {
65
65
border : 1px solid ${ style . border } ;
66
66
border-radius : ${ style . radius } ;
67
67
overflow : hidden;
68
- margin : ${ style . margin } ;
69
68
padding : ${ style . padding } ;
70
- width : ${ widthCalculator ( style . margin ) } ;
71
- height : ${ heightCalculator ( style . margin ) } ;
72
69
73
70
> .ant-tabs-content-holder > .ant-tabs-content > div > .react-grid-layout {
74
71
background-color : ${ style . background } ;
@@ -167,6 +164,7 @@ const TabbedContainer = (props: TabbedContainerProps) => {
167
164
// log.debug("TabbedContainer. props: ", props);
168
165
169
166
return (
167
+ < div style = { { padding : props . style . margin } } >
170
168
< StyledTabs
171
169
activeKey = { activeKey }
172
170
$style = { style }
@@ -214,6 +212,7 @@ const TabbedContainer = (props: TabbedContainerProps) => {
214
212
) ;
215
213
} ) }
216
214
</ StyledTabs >
215
+ </ div >
217
216
) ;
218
217
} ;
219
218
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ const getStyle = (style: ContainerStyleType) => {
13
13
border-color : ${ style . border } ;
14
14
border-radius : ${ style . radius } ;
15
15
overflow : hidden;
16
- margin : ${ style . margin } ;
16
+ // margin: ${ style . margin } ;
17
17
padding : ${ style . padding } ;
18
- width : ${ widthCalculator ( style . margin ) } ;
19
- height : ${ heightCalculator ( style . margin ) } ;
18
+ // width: ${ widthCalculator ( style . margin ) } ;
19
+ // height: ${ heightCalculator ( style . margin ) } ;
20
20
` ;
21
21
} ;
22
22
@@ -78,6 +78,7 @@ export function TriContainer(props: TriContainerProps) {
78
78
const paddingWidth = isMobile ? 7 : 19 ;
79
79
80
80
return (
81
+ < div style = { { padding : style . margin } } >
81
82
< Wrapper $style = { style } >
82
83
{ showHeader && (
83
84
< BackgroundColorContext . Provider value = { container . style . headerBackground } >
@@ -128,5 +129,6 @@ export function TriContainer(props: TriContainerProps) {
128
129
</ BackgroundColorContext . Provider >
129
130
) }
130
131
</ Wrapper >
132
+ </ div >
131
133
) ;
132
134
}
You can’t perform that action at this time.
0 commit comments