File tree 1 file changed +6
-6
lines changed
client/packages/lowcoder/src/comps/generators
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -274,17 +274,17 @@ function UIView(props: {
274
274
boxShadowVal === undefined ||
275
275
boxShadowVal === '0px' )
276
276
? restrictPaddingOnRotationVal === 'qrCode'
277
- ? ' 50% 0px'
277
+ ? rotationVal !== '' && rotationVal !== '0deg' ? ' 50% 0px' : ' 0px'
278
278
: restrictPaddingOnRotationVal === 'image'
279
- ? ' 10% 0px'
279
+ ? rotationVal !== '' && rotationVal !== '0deg' ? ' 10% 0px' : ' 0px'
280
280
: restrictPaddingOnRotationVal === 'imageCarousel'
281
- ? ' 35% 0px'
281
+ ? rotationVal !== '' && rotationVal !== '0deg' ? ' 35% 0px' : ' 0px'
282
282
: restrictPaddingOnRotationVal === 'fileViewer'
283
- ? ' 65% 0px'
283
+ ? rotationVal !== '' && rotationVal !== '0deg' ? ' 65% 0px' : ' 0px'
284
284
: restrictPaddingOnRotationVal === 'controlButton'
285
- ? ' 50% 0px'
285
+ ? rotationVal !== '' && rotationVal !== '0deg' ? ' 50% 0px' : ' 0px'
286
286
: restrictPaddingOnRotationVal === 'video'
287
- ? ' 26% 0px'
287
+ ? rotationVal !== '' && rotationVal !== '0deg' ? ' 26% 0px' : ' 0px'
288
288
: '0px' // Both rotation and box-shadow are empty or restricted
289
289
: rotationVal !== '' && rotationVal !== '0deg' // Rotation applied
290
290
? boxShadowVal === null ||
You can’t perform that action at this time.
0 commit comments