Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Fixed Store preview screenshot aspect ratio (#12709)
Damian Legawiec3cedcc7351dd
diff --git a/admin/app/views/spree/admin/themes/_theme_preview_image.html.erb b/admin/app/views/spree/admin/themes/_theme_preview_image.html.erbindex 5c887bcd16..317d5649d7 100644--- a/admin/app/views/spree/admin/themes/_theme_preview_image.html.erb+++ b/admin/app/views/spree/admin/themes/_theme_preview_image.html.erb@@ -2,7 +2,7 @@<% height ||= 72 %><% if theme.screenshot.attached? && theme.screenshot.variable? %>- <%= spree_image_tag(theme.screenshot, width: width, height: height, class: 'img-thumbnail border-0', loading: :lazy) %>+ <%= image_tag(spree_image_url(theme.screenshot, width: width, height: height), class: 'img-thumbnail border-0', loading: :lazy) %><% elsif theme.class.preview_image_url.present? %><%= image_tag(theme.class.preview_image_url,