diff --git a/CHANGELOG.md b/CHANGELOG.md index 99758c59..4ee048dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 1.8.4 +- ui + - hide the console toggle button when the bottom panel is minimized and the editor is disabled + - widgets - file: add `mode` property, for choosing between `open` and `save` modes diff --git a/src/client/editor/index.js b/src/client/editor/index.js index 5e01e55f..6820b395 100644 --- a/src/client/editor/index.js +++ b/src/client/editor/index.js @@ -403,6 +403,7 @@ class Editor { this.enabled = true document.body.classList.add('editor-enabled') + document.body.classList.remove('editor-disabled') this.widgetTree.updateTree(this.selectedWidgets) @@ -424,6 +425,7 @@ class Editor { this.unselect() this.selectedWidgets = [] + document.body.classList.add('editor-disabled') document.body.classList.remove('editor-enabled') keyboardJS.setContext('global') diff --git a/src/html/client.html b/src/html/client.html index 55d75963..8a7d0c01 100644 --- a/src/html/client.html +++ b/src/html/client.html @@ -16,7 +16,7 @@ - + diff --git a/src/scss/ui/console.scss b/src/scss/ui/console.scss index 8253c7f0..e45e3a2e 100644 --- a/src/scss/ui/console.scss +++ b/src/scss/ui/console.scss @@ -43,6 +43,10 @@ $padding: 8rem; } +.editor-disabled #osc-console.minimized > .toggle-button { + display: none; +} + osc-console { height: 100%; padding: $padding;