diff --git a/styles.css b/styles.css index 11b9e12..0cbb510 100644 --- a/styles.css +++ b/styles.css @@ -1412,10 +1412,21 @@ html[data-theme="light"] .accent-swatch-custom { overflow: auto; } + /* + Двухколоночное дерево на touch не отключается полностью: + - в portrait — всегда, если включена настройка; + - в landscape — начиная с 520px ширины viewport. + */ html[data-tree-two-column="true"] .tree-items { grid-template-columns: 1fr; } + @media (min-width: 520px), (orientation: portrait) { + html[data-tree-two-column="true"] .tree-items { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + } + .control-panel, .catalog-section, .empty-state {