Skip to content

armgit / spree

Public Imported from GitHub
0

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.

Utilize better space with a bigger container

Damian Legawiec35d3b228fa4d
diff --git a/admin/app/assets/stylesheets/spree/admin/global/_variables.scss b/admin/app/assets/stylesheets/spree/admin/global/_variables.scss
index 32dc2eb559..ea1c03a384 100644
--- a/admin/app/assets/stylesheets/spree/admin/global/_variables.scss
+++ b/admin/app/assets/stylesheets/spree/admin/global/_variables.scss
@@ -22,6 +22,15 @@ $white: #FFFFFF !default;
$action: #F4F9FF !default;
$action-border: #e2ecff !default;
+// Override Bootstrap 4.6 breakpoints
+$container-max-widths: (
+ sm: 540px,
+ md: 720px,
+ lg: 960px,
+ xl: 1240px
+) !default;
+
+
$theme-colors: (
"white": $white,
"black": $black,
diff --git a/admin/app/views/spree/admin/promotions/_header.html.erb b/admin/app/views/spree/admin/promotions/_header.html.erb
index 794ab45cd3..0e86f8eb42 100644
--- a/admin/app/views/spree/admin/promotions/_header.html.erb
+++ b/admin/app/views/spree/admin/promotions/_header.html.erb
@@ -1,9 +1,7 @@
<% content_for :page_title do %>
<%= page_header_back_button spree.admin_promotions_path, @promotion %>
<%= @promotion.name %>
- <div class="ml-3">
- <%= render 'spree/admin/promotions/status', promotion: @promotion %>
- </div>
+ <%= render 'spree/admin/promotions/status', promotion: @promotion %>
<% end %>
<% content_for :page_tabs do %>
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.erb
index 8f21da16d7..5c887bcd16 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,12 +2,11 @@
<% height ||= 72 %>
<% if theme.screenshot.attached? && theme.screenshot.variable? %>
- <%= spree_image_tag(theme.screenshot, width: width, height: height, class: 'img-thumbnail', style: "width: #{width}px; height: #{height}px", loading: :lazy) %>
+ <%= spree_image_tag(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,
- class: 'img-thumbnail',
- style: "width: #{width}px; height: #{height}px",
+ class: 'img-thumbnail border-0',
loading: :lazy
) %>
<% else %>