Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Fix backgound image thumbnail (#1455)

Ivan Starkov1b5ddd2cb0b8
diff --git a/apps/builder/.gitignore b/apps/builder/.gitignore
index 2fb241ff74..407044ce9a 100644
--- a/apps/builder/.gitignore
+++ b/apps/builder/.gitignore
@@ -10,3 +10,4 @@
/api/_assets
/public/uploads
/public/s/uploads
+/uploads
diff --git a/apps/builder/app/builder/features/style-panel/sections/backgrounds/background-thumbnail.tsx b/apps/builder/app/builder/features/style-panel/sections/backgrounds/background-thumbnail.tsx
index 7da33c473e..0598033f9d 100644
--- a/apps/builder/app/builder/features/style-panel/sections/backgrounds/background-thumbnail.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/backgrounds/background-thumbnail.tsx
@@ -41,6 +41,8 @@ const StyledWebstudioImage = styled(WebstudioImage, {
height: "100%",
left: 0,
top: 0,
+ right: 0,
+ bottom: 0,
backgroundSize: "contain",
backgroundRepeat: "no-repeat",
backgroundPosition: "center",
@@ -110,7 +112,6 @@ export const LayerThumbnail = (props: { layerStyle: StyleInfo }) => {
src={asset.name}
width={theme.spacing[10]}
optimize={true}
- alt={getLayerName(props.layerStyle, assets)}
/>
);
}