We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a626975 commit 13c973aCopy full SHA for 13c973a
client/packages/lowcoder/src/util/styleUtils.tsx
@@ -5,7 +5,7 @@ const getBackgroundStyle = (style: Record<string, string | undefined>) => {
5
return css`
6
${isValidColor(style.background) && `background-color: ${style.background}`};
7
${isValidGradient(style.background) && !Boolean(style.backgroundImage) && `background-image: ${style.background}`};
8
- ${!isValidGradient(style.background) && Boolean(style.backgroundImage) && `background-image: ${style.backgroundImage}`};
+ ${!isValidGradient(style.background) && Boolean(style.backgroundImage) && `background-image: url(${style.backgroundImage})`};
9
${isValidGradient(style.background) && Boolean(style.backgroundImage) && `background-image: url(${style.backgroundImage}), ${style.background}`};
10
11
${style.backgroundImageRepeat && `background-repeat: ${style.backgroundImageRepeat};`};
0 commit comments