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

Commit1facfbc

Browse files
committed
condition updated
1 parente3f2144 commit1facfbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@ function UIView(props: {
269269
(boxShadowVal===null||boxShadowVal===undefined||boxShadowVal==='0px')
270270
) ?'0px'// Both rotation and box-shadow are empty or restricted
271271
:rotationVal!==''&&rotationVal!=='0deg'// Rotation applied
272-
?(boxShadowVal!==''&&boxShadowVal!=='0px')// Both rotation and box-shadow applied
272+
?(boxShadowVal===null||boxShadowVal===undefined||boxShadowVal==='0px')?'0px':(boxShadowVal!==''&&boxShadowVal!=='0px')// Both rotation and box-shadow applied
273273
?`calc(min(50%,${Math.abs(rotationVal.replace('deg','')+parseFloat(boxShadowVal.replace('px','')))/90} * 100%)) 0px`
274274
:`calc(min(50%,${Math.abs(rotationVal.replace('deg',''))/90} * 100%)) 0px`// Only rotation applied
275-
:boxShadowVal!==''&&boxShadowVal!=='0px'// Box-shadow applied
275+
:(boxShadowVal===null||boxShadowVal===undefined||boxShadowVal==='0px')?'0px':(boxShadowVal!==''&&boxShadowVal!=='0px')// Box-shadow applied
276276
?`calc(min(50%,${Math.abs(parseFloat(boxShadowVal.replace('px','')))/90} * 100%)) 0px`
277277
:'0px'// Default value if neither rotation nor box-shadow is applied
278278
}}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp