Skip to content

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

Added CSS pre-wrap for notes. (including on the dashboard)

NyanKiyoshief00424ed7cb
diff --git a/saleor/static/dashboard/scss/layouts/_orders.scss b/saleor/static/dashboard/scss/layouts/_orders.scss
index 0d5875dcc6..a8eab40ac4 100644
--- a/saleor/static/dashboard/scss/layouts/_orders.scss
+++ b/saleor/static/dashboard/scss/layouts/_orders.scss
@@ -2,6 +2,9 @@
.order-notes {
.list-item {
margin-bottom: 1rem;
+ p {
+ white-space: pre-wrap;
+ }
}
}
}
diff --git a/saleor/static/scss/layouts/_order-details.scss b/saleor/static/scss/layouts/_order-details.scss
index c4fb839bc2..c59a51945b 100644
--- a/saleor/static/scss/layouts/_order-details.scss
+++ b/saleor/static/scss/layouts/_order-details.scss
@@ -53,4 +53,7 @@
&__header {
margin-top: 2 * $global-margin;
}
+ > p {
+ white-space: pre-wrap;
+ }
}