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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix: Fix marketplace form thumb rendering for wrong proportions (#3000)
Oleg Isonen274983e3faf4
diff --git a/apps/builder/app/builder/features/project-settings/section-marketplace.tsx b/apps/builder/app/builder/features/project-settings/section-marketplace.tsxindex f421b1fd46..18f678b2ff 100644--- a/apps/builder/app/builder/features/project-settings/section-marketplace.tsx+++ b/apps/builder/app/builder/features/project-settings/section-marketplace.tsx@@ -39,22 +39,22 @@ import {} from "@webstudio-is/project";import { projectsPath } from "~/shared/router-utils";-const imgStyle = css({+const thumbnailStyle = css({borderRadius: theme.borderRadius[4],borderWidth: 1,borderStyle: "solid",borderColor: theme.colors.borderMain,aspectRatio: "1.91",+ objectFit: "cover",+});+const imageLoader = createImageLoader({+ imageBaseUrl: env.IMAGE_BASE_URL,});const defaultMarketplaceProduct: Partial<MarketplaceProduct> = {category: "sectionTemplates",};-const imageLoader = createImageLoader({- imageBaseUrl: env.IMAGE_BASE_URL,-});-const trpc = createTrpcRemixProxy<ProjectRouter>((method) =>projectsPath(method, { authToken: $authToken.get() }));@@ -208,7 +208,7 @@ export const SectionMarketplace = () => {<InputErrorsTooltip errors={errors?.thumbnailAssetId}><Imagewidth={rawTheme.spacing[28]}- className={imgStyle()}+ className={thumbnailStyle()}src={thumbnailUrl}loader={imageLoader}/>