fix(editor): mobile column stacking follows the desktop style, as published

Published mobile stacking is the global RESPONSIVE_CSS rule matching the
DESKTOP inline style, so un-stacking Columns on mobile under a stacked tablet
(styleMobile.flexDirection 'row') publishes un-stacked. The editor's
device-emulation copy matched the resolved inline style and showed it stacked.
RenderNode now marks nodes with a flexDirection/display override with
data-wsb-base-stack (baseStacksOnMobile) and editor.css keys off it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shadowdaoandClaude Opus 5.5 committed 2026-10-07 13:40:54 -07:00
1 parent 579ea5370c
commit e20c604413
4 files changed
+134 -4

No files matched your search

+5 -2
View File
@@ -2314,8 +2314,11 @@ body {
outline: 2px dashed var(--color-warning, #f59e0b);
}
.canvas-device-frame[data-device="mobile"] [style*="display: flex"][style*="flex-direction: row"],
.canvas-device-frame[data-device="mobile"] [style*="display:flex"][style*="flex-direction:row"] {
/* Published stacking matches the DESKTOP inline style; a node with a
flexDirection/display override carries data-wsb-base-stack (RenderNode). */
.canvas-device-frame[data-device="mobile"] [style*="display: flex"][style*="flex-direction: row"]:not([data-wsb-base-stack]),
.canvas-device-frame[data-device="mobile"] [style*="display:flex"][style*="flex-direction:row"]:not([data-wsb-base-stack]),
.canvas-device-frame[data-device="mobile"] [data-wsb-base-stack="1"] {
flex-direction: column !important;
}