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.

Fixed sidebar with long shop names

Damian Legawiec6ae70c735699
diff --git a/admin/app/assets/stylesheets/spree/admin/components/_main.scss b/admin/app/assets/stylesheets/spree/admin/components/_main.scss
index 0c368adc12..04d477522b 100644
--- a/admin/app/assets/stylesheets/spree/admin/components/_main.scss
+++ b/admin/app/assets/stylesheets/spree/admin/components/_main.scss
@@ -30,6 +30,7 @@ turbo-frame[loading] .spinner-border, turbo-frame[busy] .spinner-border {
border-right: 1px solid $gray-100;
height: 100vh;
overflow-y: auto;
+ overflow-x: hidden;
position: fixed;
top: 0;
color: $gray-700;
diff --git a/admin/app/views/spree/admin/shared/sidebar/_store_dropdown.html.erb b/admin/app/views/spree/admin/shared/sidebar/_store_dropdown.html.erb
index 1eabc973a7..2ec98c7a0f 100644
--- a/admin/app/views/spree/admin/shared/sidebar/_store_dropdown.html.erb
+++ b/admin/app/views/spree/admin/shared/sidebar/_store_dropdown.html.erb
@@ -4,7 +4,7 @@
data-toggle="dropdown" aria-expanded="false">
<%= store_admin_icon(current_store, height: 32, width: 32) %>
<span class="d-none d-lg-block">
- <%= truncate(current_store.name, length: 15) %>
+ <%= truncate(current_store.name, length: 10) %>
</span>
</button>
<div class="dropdown-menu">