ui: hide the console toggle button when the bottom panel is minimized and the editor is disabled
This commit is contained in:
parent
8e3e6266c5
commit
a36f9da50d
4 changed files with 10 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -43,6 +43,10 @@ $padding: 8rem;
|
|||
|
||||
}
|
||||
|
||||
.editor-disabled #osc-console.minimized > .toggle-button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
osc-console {
|
||||
height: 100%;
|
||||
padding: $padding;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue