Skip to content

Commit c7ed2c3

Browse files
committed
condition updated
1 parent 1facfbc commit c7ed2c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ 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 === null || boxShadowVal === undefined || boxShadowVal === '0px')?'0px':(boxShadowVal !== '' && boxShadowVal !== '0px') // Both rotation and box-shadow applied
272+
? (boxShadowVal === null || boxShadowVal === undefined || boxShadowVal === '0px')?`calc(min(50%, ${Math.abs(rotationVal.replace('deg', '')) / 90} * 100%)) 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
275275
: (boxShadowVal === null || boxShadowVal === undefined || boxShadowVal === '0px')?'0px':(boxShadowVal !== '' && boxShadowVal !== '0px') // Box-shadow applied

0 commit comments

Comments
 (0)