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.

Fix Alignment and logo

Matthew Kennedycd39c91f3b68
diff --git a/frontend/app/views/spree/products/_gallery_modal.html.erb b/frontend/app/views/spree/products/_gallery_modal.html.erb
index 14b4d1f166..a7f7d877f1 100644
--- a/frontend/app/views/spree/products/_gallery_modal.html.erb
+++ b/frontend/app/views/spree/products/_gallery_modal.html.erb
@@ -3,7 +3,7 @@
<div class="modal-dialog--zoom modal-dialog mw-100 vh-100 mt-0 mb-0" role="document">
<div class="modal-content h-100">
<div class="modal-body h-100">
- <button type="button" class="close position-absolute" data-dismiss="modal" aria-label="Close">
+ <button type="button" class="close position-absolute mr-3" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">
<%= icon(name: 'close',
classes: 'd-block d-lg-none',
diff --git a/frontend/app/views/spree/shared/_checkout_header.html.erb b/frontend/app/views/spree/shared/_checkout_header.html.erb
index d02d22e96a..54404faf35 100644
--- a/frontend/app/views/spree/shared/_checkout_header.html.erb
+++ b/frontend/app/views/spree/shared/_checkout_header.html.erb
@@ -20,7 +20,7 @@
</div>
<div class="d-flex flex-nowrap align-items-center justify-content-center">
<figure class="logo flex-grow-0 flex-xl-grow-0 order-xl-0 header-spree-fluid-logo m-0">
- <%= logo(Spree::Config[:logo], method: :get) %>
+ <%= logo %>
</figure>
</div>
</div>
diff --git a/frontend/app/views/spree/shared/_mobile_navigation.html.erb b/frontend/app/views/spree/shared/_mobile_navigation.html.erb
index 586804a5f5..e2bb81b6cf 100644
--- a/frontend/app/views/spree/shared/_mobile_navigation.html.erb
+++ b/frontend/app/views/spree/shared/_mobile_navigation.html.erb
@@ -2,19 +2,17 @@
<div class="position-fixed text-uppercase d-xl-none mobile-navigation" role="navigation" aria-label="<%= Spree.t('nav_bar.mobile') %>">
<div class="d-flex align-items-center header-spree" data-hook>
<div class="container-fluid header-spree-fluid">
- <div class="d-flex flex-nowrap align-items-center">
- <div class="d-xl-none flex-grow-1">
- <button id="mobile-navigation-back-button" aria-label="<%= Spree.t('nav_bar.go_to_previous_menu') %>">
- <%= icon(name: 'arrow-right',
- classes: 'd-inline spree-icon-arrow spree-icon-arrow-left',
- width: 17,
- height: 28) %>
- </button>
- </div>
- <figure class="logo flex-grow-0 flex-xl-grow-1 order-xl-0 header-spree-fluid-logo" data-hook>
+ <div class="d-flex flex-row flex-nowrap align-items-center justify-content-between">
+ <button id="mobile-navigation-back-button" aria-label="<%= Spree.t('nav_bar.go_to_previous_menu') %>">
+ <%= icon(name: 'arrow-right',
+ classes: 'd-inline spree-icon-arrow spree-icon-arrow-left',
+ width: 17,
+ height: 28) %>
+ </button>
+ <figure class="logo header-spree-fluid-logo" data-hook>
<%= logo %>
</figure>
- <div id="top-nav-bar-mobile" class="text-right flex-grow-1 header-spree-fluid-secondary-navigation" data-hook>
+ <div id="top-nav-bar-mobile" class="header-spree-fluid-secondary-navigation" data-hook>
<button id="mobile-navigation-close-button" aria-label="<%= Spree.t('nav_bar.close_menu') %>">
<%= icon(name: 'close',
classes: 'd-inline',