From 6bea69f395234f53286fee88fd936e4bba928b98 Mon Sep 17 00:00:00 2001 From: Aqib Mirza Date: Thu, 20 Jul 2023 18:45:18 +0530 Subject: [PATCH] fix: margin padding for lottie --- .../comps/comps/jsonComp/jsonLottieComp.tsx | 49 ++++++++++--------- .../comps/controls/styleControlConstants.tsx | 2 + 2 files changed, 29 insertions(+), 22 deletions(-) diff --git a/client/packages/lowcoder/src/comps/comps/jsonComp/jsonLottieComp.tsx b/client/packages/lowcoder/src/comps/comps/jsonComp/jsonLottieComp.tsx index 1eb4da69a..faf49602b 100644 --- a/client/packages/lowcoder/src/comps/comps/jsonComp/jsonLottieComp.tsx +++ b/client/packages/lowcoder/src/comps/comps/jsonComp/jsonLottieComp.tsx @@ -94,31 +94,36 @@ let JsonLottieTmpComp = (function () { }; return new UICompBuilder(childrenMap, (props) => { return ( -
- +
+ > + +
); }) diff --git a/client/packages/lowcoder/src/comps/controls/styleControlConstants.tsx b/client/packages/lowcoder/src/comps/controls/styleControlConstants.tsx index 67b36bdef..c1485f300 100644 --- a/client/packages/lowcoder/src/comps/controls/styleControlConstants.tsx +++ b/client/packages/lowcoder/src/comps/controls/styleControlConstants.tsx @@ -878,6 +878,8 @@ export const LottieStyle = [ depType: DEP_TYPE.SELF, transformer: toSelf, }, + MARGIN, + PADDING, ] as const; /////////////////////