diff --git a/CHANGELOG.md b/CHANGELOG.md
index 177a1d8c..0911bf7b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -19,7 +19,7 @@ As of this version, packages except the `node` package are bundled with a midi b
- `ELECTRON_RUN_AS_NODE` headless mode not working without `--no-gui` option
- editor
- - add console panel under the inspector to ease debugging
+ - add console bottom panel
- widgets
- keyboard: add `velocity` property (allows mapping the touch coordinates between `off` (top) and `on` (bottom))
diff --git a/src/client/editor/index.js b/src/client/editor/index.js
index 600b057e..a4bce9f9 100644
--- a/src/client/editor/index.js
+++ b/src/client/editor/index.js
@@ -52,7 +52,7 @@ class Editor {
w.props[propName] = previousValue
updateWidget(w, {changedProps: [propName], preventSelect: this.selectedWidgets.length > 1})
- if (uiConsole.minimized || rightUiSidePanel.minimized) notifications.add({
+ if (uiConsole.minimized) notifications.add({
class: 'error',
message: locales('inspector_error'),
duration: 7000
diff --git a/src/client/locales/en.js b/src/client/locales/en.js
index c229f005..9bd95e30 100644
--- a/src/client/locales/en.js
+++ b/src/client/locales/en.js
@@ -1,7 +1,8 @@
module.exports = {
// console
- console_title: 'Console',
+ console: 'Console',
+ console_enabled: 'Enabled',
console_clear: 'Clear console',
diff --git a/src/client/locales/fr.js b/src/client/locales/fr.js
index b58e710b..85b98fab 100644
--- a/src/client/locales/fr.js
+++ b/src/client/locales/fr.js
@@ -1,7 +1,8 @@
module.exports = {
// console
- console_title: 'Console',
+ console: 'Console',
+ console_enabled: 'Activée',
console_clear: 'Vider la console',
// editor
diff --git a/src/client/ui/main-menu.js b/src/client/ui/main-menu.js
index 243ffca8..c9ca6a7f 100644
--- a/src/client/ui/main-menu.js
+++ b/src/client/ui/main-menu.js
@@ -159,11 +159,6 @@ var menuEntries = [
action: ()=>{return rightUiSidePanel.minimized ? rightUiSidePanel.restore() : rightUiSidePanel.minimize()},
shortcut: 'mod + i'
},
- {
- label: locales('console_title'),
- class: ()=>{return 'toggle ' + (uiConsole.minimized ? 'off' : 'on')},
- action: ()=>{return uiConsole.minimized ? uiConsole.restore() : uiConsole.minimize()}
- },
{
separator: true
},
@@ -174,6 +169,23 @@ var menuEntries = [
}
]
},
+ {
+ label: locales('console'),
+ action: [
+ {
+ label: locales('console_enabled'),
+ class: ()=>{return 'toggle ' + (uiConsole.minimized ? 'off' : 'on')},
+ action: ()=>{return uiConsole.minimized ? uiConsole.restore() : uiConsole.minimize()}
+ },
+ {
+ separator: true
+ },
+ {
+ label: locales('console_clear'),
+ action: uiConsole.clear.bind(uiConsole),
+ },
+ ]
+ },
{
separator: true
},
diff --git a/src/client/ui/ui-console.js b/src/client/ui/ui-console.js
index 54c0aa4f..ab40916c 100644
--- a/src/client/ui/ui-console.js
+++ b/src/client/ui/ui-console.js
@@ -12,7 +12,7 @@ class UiConsole extends UiSidePanel {
this.header = DOM.get(this.container, 'osc-panel-header')[0]
- this.header.appendChild(html``)
+ this.header.appendChild(html``)
this.messages = this.content.appendChild(html``)
// this.inputWrapper = this.container.appendChild(html``)
// this.input = this.inputWrapper.appendChild(html``)
diff --git a/src/html/client.html b/src/html/client.html
index 7aee3ab4..9d4fe36a 100644
--- a/src/html/client.html
+++ b/src/html/client.html
@@ -17,40 +17,42 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/scss/ui/workspaces.scss b/src/scss/ui/workspaces.scss
index 521c4730..3f29db8c 100644
--- a/src/scss/ui/workspaces.scss
+++ b/src/scss/ui/workspaces.scss
@@ -16,6 +16,13 @@ osc-workspace {
flex-direction: row;
overflow: hidden;
+ &.vertical {
+ flex-direction: column;
+ }
+ &.horizontal {
+ flex-direction: row;
+ }
+
}
osc-panel-container {
@@ -24,6 +31,12 @@ osc-panel-container {
display:flex;
flex-direction: column;
+ &.vertical {
+ flex-direction: column;
+ }
+ &.horizontal {
+ flex-direction: row;
+ }
&.center {
flex: 1;
@@ -328,6 +341,10 @@ osc-panel-content {
}
+#main {
+ flex: 1;
+ min-height: 40rem;
+}
#osc-greeting-header {
--alpha-fill: 0.75;