Skip to content

Commit 9fbd71d

Browse files
authored
fix: Only switch to structure endpoint on viewport breakpoint if in edit mode (#7920)
1 parent d58e55c commit 9fbd71d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cms/static/cms/js/modules/cms.structureboard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class StructureBoard {
181181
const width = this.ui.window[0].innerWidth;
182182
const BREAKPOINT = 1024;
183183

184-
if (width > BREAKPOINT && !this.condensed) {
184+
if (width > BREAKPOINT && !this.condensed && CMS.settings.mode === 'edit') {
185185
this._makeCondensed();
186186
}
187187

@@ -683,7 +683,7 @@ class StructureBoard {
683683

684684
if (CMS.settings.mode === 'structure') {
685685
history.replaceState({}, '', CMS.config.settings.structure);
686-
this.ui.html.addClass('cms-overflow');
686+
$('html.cms-structure-mode-structure').addClass('cms-overflow');
687687
}
688688

689689
this.ui.container.css('right', 0);

0 commit comments

Comments
 (0)