Skip to content

Commit 419c11c

Browse files
ShapeComp: added gradient
1 parent 4f19e7b commit 419c11c

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

client/packages/lowcoder/src/comps/comps/shapeComp/shapeTriContainer.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
} from "../containerComp/containerView";
1212
import { TriContainerViewProps } from "../triContainerComp/triContainerCompBuilder";
1313
import { Coolshape } from "coolshapes-react";
14+
import { getBackgroundStyle } from "@lowcoder-ee/util/styleUtils";
1415

1516
const getStyle = (style: ContainerStyleType) => {
1617
return css`
@@ -19,16 +20,8 @@ const getStyle = (style: ContainerStyleType) => {
1920
border-radius: ${style.radius};
2021
overflow: hidden;
2122
padding: ${style.padding};
22-
${style.background && `background-color: ${style.background};`}
23-
${style.backgroundImage && `background-image: ${style.backgroundImage};`}
24-
${style.backgroundImageRepeat &&
25-
`background-repeat: ${style.backgroundImageRepeat};`}
26-
${style.backgroundImageSize &&
27-
`background-size: ${style.backgroundImageSize};`}
28-
${style.backgroundImagePosition &&
29-
`background-position: ${style.backgroundImagePosition};`}
30-
${style.backgroundImageOrigin &&
31-
`background-origin: ${style.backgroundImageOrigin};`}
23+
24+
${getBackgroundStyle(style)}
3225
`;
3326
};
3427

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy