From 632c25c713bb0492e8754802afa426ba83f3a793 Mon Sep 17 00:00:00 2001 From: Aleksey Novikov Date: Sat, 26 Aug 2023 22:47:26 +0300 Subject: [PATCH] #6799 - fixed compact mode --- src/defaultV2-theme/blocks/sd-row.scss | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/defaultV2-theme/blocks/sd-row.scss b/src/defaultV2-theme/blocks/sd-row.scss index 275bd83fe6..6589d246c7 100644 --- a/src/defaultV2-theme/blocks/sd-row.scss +++ b/src/defaultV2-theme/blocks/sd-row.scss @@ -32,7 +32,7 @@ width: calc(100% + var(--sd-base-padding)); flex-wrap: wrap; - >div { + &>div { box-sizing: border-box; padding-left: calcSize(2); } @@ -46,6 +46,11 @@ } } +.sd-row--multiple.sd-row--compact { + &>div { + padding-left: var(--sd-base-padding); + } +} .sd-page__row.sd-row--multiple { margin-left: calcSize(-2); width: calc(100% + 2 * var(--sjs-base-unit, var(--base-unit, 8px))); @@ -53,6 +58,8 @@ &.sd-row--compact { padding: 0; + margin-left: calc(-1 * var(--sd-base-padding)); + width: calc(100% + var(--sd-base-padding)); } }