Skip to content

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

Remove padding, small js improvement

Pacu23fb027ece591
diff --git a/saleor/static/dashboard/js/components/google-preview.js b/saleor/static/dashboard/js/components/google-preview.js
index 5777ae0e17..b7fede63df 100644
--- a/saleor/static/dashboard/js/components/google-preview.js
+++ b/saleor/static/dashboard/js/components/google-preview.js
@@ -7,10 +7,12 @@ const $seoDescription = $('#id_seo_description');
const $descriptionMaterialize = $seoDescription.data('materialize');
let $description = '';
+const $descriptionId = $seoDescription.data('bind');
if ($descriptionMaterialize) {
- $description = $(`.materialize-textarea[name='${$descriptionMaterialize}']`);
+ const $descriptions = $(`.materialize-textarea[name='${$descriptionMaterialize}']`);
+ // They're two textareas from Medium editor, one contains HTML-free text, other formating
+ $description = $descriptions.not($descriptionId).first();
} else {
- const $descriptionId = $seoDescription.data('bind');
if ($descriptionId) {
$description = $(`#${$descriptionId}`);
}
diff --git a/saleor/static/dashboard/scss/components/_google-preview.scss b/saleor/static/dashboard/scss/components/_google-preview.scss
index c097d4a6ca..58e987ae0d 100644
--- a/saleor/static/dashboard/scss/components/_google-preview.scss
+++ b/saleor/static/dashboard/scss/components/_google-preview.scss
@@ -2,7 +2,6 @@
text-align: left;
letter-spacing: initial;
&__container {
- padding: 10px 0 0 10px;
background-color: #fff;
max-width: 600px;
}