Skip to content

Commit 1facfbc

Browse files
committed
condition updated
1 parent e3f2144 commit 1facfbc

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)