ui: hide the console toggle button when the bottom panel is minimized and the editor is disabled

This commit is contained in:
bordun 2021-01-26 09:02:31 +01:00
parent 8e3e6266c5
commit a36f9da50d
4 changed files with 10 additions and 1 deletions

View file

@ -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

View file

@ -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')

View file

@ -16,7 +16,7 @@
<script src="../client/open-stage-control-client.js?version=${version}"></script>
</head>
<body>
<body class="editor-disabled">
<osc-workspace class="vertical">
<osc-panel-container class="horizontal" id="main">
<osc-toolbar id="main-menu"></osc-toolbar>

View file

@ -43,6 +43,10 @@ $padding: 8rem;
}
.editor-disabled #osc-console.minimized > .toggle-button {
display: none;
}
osc-console {
height: 100%;
padding: $padding;