Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3d0daee

Browse files
committed
function created
1 parent380b47e commit3d0daee

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

‎client/packages/lowcoder/src/comps/generators/uiCompBuilder.tsx‎

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -257,17 +257,7 @@ function UIView(props: {
257257
boxShadowVal=defaultChildren.style?.children?.boxShadow?.valueAndMsg?.value;
258258
restrictPaddingOnRotationVal=defaultChildren?.restrictPaddingOnRotation?.valueAndMsg?.value;
259259
}
260-
return(
261-
<div
262-
ref={props.innerRef}
263-
className={childrenProps.classNameasstring}
264-
data-testid={childrenProps.dataTestIdasstring}
265-
style={{
266-
width:'100%',
267-
height:'100%',
268-
margin:'0px',
269-
padding:
270-
(rotationVal===null||
260+
constgetPadding=()=>(rotationVal===null||
271261
rotationVal===undefined||
272262
restrictPaddingOnRotation)&&
273263
(boxShadowVal===null||
@@ -300,7 +290,18 @@ function UIView(props: {
300290
?'0px'
301291
:boxShadowVal!==''&&boxShadowVal!=='0px'// Box-shadow applied
302292
?`calc(min(50%,${Math.abs(parseFloat(boxShadowVal.replace('px','')))/90} * 100%)) 0px`
303-
:'0px',// Default value if neither rotation nor box-shadow is applied
293+
:'0px'// Default value if neither rotation nor box-shadow is applied
294+
return(
295+
<div
296+
ref={props.innerRef}
297+
className={childrenProps.classNameasstring}
298+
data-testid={childrenProps.dataTestIdasstring}
299+
style={{
300+
width:'100%',
301+
height:'100%',
302+
margin:'0px',
303+
padding:getPadding()
304+
304305
}}
305306
>
306307
<HidableViewhidden={childrenProps.hiddenasboolean}>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp