Skip to content

Commit af215e7

Browse files
committed
padding on rotation
1 parent c984e21 commit af215e7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,17 @@ function UIView(props: {
274274
boxShadowVal === undefined ||
275275
boxShadowVal === '0px')
276276
? restrictPaddingOnRotationVal === 'qrCode'
277-
? '50% 0px'
277+
? rotationVal !== '' && rotationVal !== '0deg'?'50% 0px':'0px'
278278
: restrictPaddingOnRotationVal === 'image'
279-
? '10% 0px'
279+
? rotationVal !== '' && rotationVal !== '0deg'?'10% 0px':'0px'
280280
: restrictPaddingOnRotationVal === 'imageCarousel'
281-
? '35% 0px'
281+
? rotationVal !== '' && rotationVal !== '0deg'?'35% 0px':'0px'
282282
: restrictPaddingOnRotationVal === 'fileViewer'
283-
? '65% 0px'
283+
? rotationVal !== '' && rotationVal !== '0deg'?'65% 0px':'0px'
284284
: restrictPaddingOnRotationVal === 'controlButton'
285-
? '50% 0px'
285+
? rotationVal !== '' && rotationVal !== '0deg'?'50% 0px':'0px'
286286
: restrictPaddingOnRotationVal === 'video'
287-
? '26% 0px'
287+
? rotationVal !== '' && rotationVal !== '0deg'?'26% 0px':'0px'
288288
: '0px' // Both rotation and box-shadow are empty or restricted
289289
: rotationVal !== '' && rotationVal !== '0deg' // Rotation applied
290290
? boxShadowVal === null ||

0 commit comments

Comments
 (0)