Skip to content

Commit 201236a

Browse files
authored
fix: Correct regression introduced in #7920 (structure board breakpoint) (#7928)
* Revert "Removed default plugin creation for placeholders (#6468)" This reverts commit eef5cbb. * Fix: Only change structure board endpoint in edit mode * Fix typo * Revert "Revert "Removed default plugin creation for placeholders (#6468)"" This reverts commit 71f0d7f. * fix: Correct patch * Update cms.structureboard.js
1 parent 63e50fe commit 201236a

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
@@ -175,13 +175,13 @@ class StructureBoard {
175175

176176
_events() {
177177
this.ui.window.on('resize.cms.structureboard', () => {
178-
if (!this._loadedContent) {
178+
if (!this._loadedContent || CMS.config.mode !== 'draft') {
179179
return;
180180
}
181181
const width = this.ui.window[0].innerWidth;
182182
const BREAKPOINT = 1024;
183183

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

0 commit comments

Comments
 (0)