Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Wrap account email in order summary if too long

weronkaad64fa1f4133
diff --git a/saleor/static/scss/dashboard.scss b/saleor/static/scss/dashboard.scss
index 5f2a18fe19..360c469cfe 100644
--- a/saleor/static/scss/dashboard.scss
+++ b/saleor/static/scss/dashboard.scss
@@ -295,6 +295,13 @@ header {
td {
padding: 5px 5px;
}
+ .order-user {
+ display: block;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ width: 100px;
+ min-width: 100%;
+ }
}
#order-notes {
diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.html
index 8586a86ab1..17fa18e442 100644
--- a/templates/dashboard/order/detail.html
+++ b/templates/dashboard/order/detail.html
@@ -71,7 +71,7 @@
<td>{% trans "Account" %}</td>
<td class="right-align">
{% if order.user %}
- <a href="{% url "dashboard:customer-details" pk=order.user.pk %}">{{ order.user }}</a>
+ <a class="order-user" href="{% url "dashboard:customer-details" pk=order.user.pk %}">{{ order.user }}</a>
{% else %}
{% trans "Guest" %}
{% endif %}