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.

[Skip CI] Admin: Fixed user dropdown name overlapping

Damian Legawiecff4bc036c4d0
diff --git a/admin/app/assets/stylesheets/spree/admin/components/_sidebar.scss b/admin/app/assets/stylesheets/spree/admin/components/_sidebar.scss
index 0d6928f6b5..503215c746 100644
--- a/admin/app/assets/stylesheets/spree/admin/components/_sidebar.scss
+++ b/admin/app/assets/stylesheets/spree/admin/components/_sidebar.scss
@@ -73,6 +73,11 @@
@media (min-width: 992px) {
display: flex;
}
+
+ > .dropdown {
+ width: 100%;
+ overflow: hidden;
+ }
}
.user-dropdown-button {
@@ -84,6 +89,7 @@
gap: 0.5rem;
box-shadow: none !important;
width: 100%;
+ overflow: hidden;
&:hover {
background-color: $gray-50;
@@ -91,6 +97,8 @@
.user-name {
flex: 1;
+ width: 0;
+ min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;