Skip to content

Commit b1027cd

Browse files
authored
Add fix of #7928
1 parent f8c946e commit b1027cd

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
@@ -176,13 +176,13 @@ class StructureBoard {
176176

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

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

0 commit comments

Comments
 (0)