diff --git a/docs/API-Reference/command/Commands.md b/docs/API-Reference/command/Commands.md
index ff8af1b778..b5ae5e4f04 100644
--- a/docs/API-Reference/command/Commands.md
+++ b/docs/API-Reference/command/Commands.md
@@ -452,6 +452,12 @@ Opens theme settings
## VIEW\_HIDE\_SIDEBAR
Toggles sidebar visibility
+**Kind**: global variable
+
+
+## VIEW\_TOGGLE\_DESIGN\_MODE
+Toggles the design (full live-preview) mode — collapses/expands the editor
+
**Kind**: global variable
diff --git a/docs/API-Reference/view/WorkspaceManager.md b/docs/API-Reference/view/WorkspaceManager.md
index 2a7f2db812..98a49cc6f5 100644
--- a/docs/API-Reference/view/WorkspaceManager.md
+++ b/docs/API-Reference/view/WorkspaceManager.md
@@ -28,6 +28,7 @@ Events:
* [.EVENT_WORKSPACE_UPDATE_LAYOUT](#module_view/WorkspaceManager..EVENT_WORKSPACE_UPDATE_LAYOUT)
* [.EVENT_WORKSPACE_PANEL_SHOWN](#module_view/WorkspaceManager..EVENT_WORKSPACE_PANEL_SHOWN)
* [.EVENT_WORKSPACE_PANEL_HIDDEN](#module_view/WorkspaceManager..EVENT_WORKSPACE_PANEL_HIDDEN)
+ * [.EVENT_WORKSPACE_DESIGN_MODE_CHANGE](#module_view/WorkspaceManager..EVENT_WORKSPACE_DESIGN_MODE_CHANGE)
* [.createBottomPanel(id, $panel, [minSize], [title], [options])](#module_view/WorkspaceManager..createBottomPanel) ⇒ Panel
* [.destroyBottomPanel(id)](#module_view/WorkspaceManager..destroyBottomPanel)
* [.createPluginPanel(id, $panel, [minSize], $toolbarIcon, [initialSize])](#module_view/WorkspaceManager..createPluginPanel) ⇒ Panel
@@ -36,6 +37,8 @@ Events:
* [.recomputeLayout(refreshHint)](#module_view/WorkspaceManager..recomputeLayout)
* [.isPanelVisible(panelID)](#module_view/WorkspaceManager..isPanelVisible) ⇒ boolean
* [.setPluginPanelWidth(width)](#module_view/WorkspaceManager..setPluginPanelWidth)
+ * [.isInDesignMode()](#module_view/WorkspaceManager..isInDesignMode) ⇒ boolean
+ * [.setDesignMode(active)](#module_view/WorkspaceManager..setDesignMode)
* [.addEscapeKeyEventHandler(consumerName, eventHandler)](#module_view/WorkspaceManager..addEscapeKeyEventHandler) ⇒ boolean
* [.removeEscapeKeyEventHandler(consumerName)](#module_view/WorkspaceManager..removeEscapeKeyEventHandler) ⇒ boolean
@@ -86,6 +89,13 @@ Event triggered when a panel is shown.
### view/WorkspaceManager.EVENT\_WORKSPACE\_PANEL\_HIDDEN
Event triggered when a panel is hidden.
+**Kind**: inner constant of [view/WorkspaceManager](#module_view/WorkspaceManager)
+
+
+### view/WorkspaceManager.EVENT\_WORKSPACE\_DESIGN\_MODE\_CHANGE
+Event triggered when design mode (editor collapsed, full live preview) is
+entered or exited. Payload: `(active: boolean)`.
+
**Kind**: inner constant of [view/WorkspaceManager](#module_view/WorkspaceManager)
@@ -189,6 +199,26 @@ No-op if no panel is currently visible.
| --- | --- | --- |
| width | number | Desired content width in pixels |
+
+
+### view/WorkspaceManager.isInDesignMode() ⇒ boolean
+Returns true while the workspace is in design mode (editor collapsed and
+live preview expanded to fill the editor area).
+
+**Kind**: inner method of [view/WorkspaceManager](#module_view/WorkspaceManager)
+
+
+### view/WorkspaceManager.setDesignMode(active)
+Sets the design-mode flag and fires EVENT_WORKSPACE_DESIGN_MODE_CHANGE when
+the value actually changes. Intended to be called by the control bar; other
+callers should use the dedicated toggle command instead.
+
+**Kind**: inner method of [view/WorkspaceManager](#module_view/WorkspaceManager)
+
+| Param | Type |
+| --- | --- |
+| active | boolean |
+
### view/WorkspaceManager.addEscapeKeyEventHandler(consumerName, eventHandler) ⇒ boolean
diff --git a/src-node/package-lock.json b/src-node/package-lock.json
index af90c10333..fb219ba887 100644
--- a/src-node/package-lock.json
+++ b/src-node/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@phcode/node-core",
- "version": "5.1.7-0",
+ "version": "5.1.8-0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@phcode/node-core",
- "version": "5.1.7-0",
+ "version": "5.1.8-0",
"hasInstallScript": true,
"license": "GNU-AGPL3.0",
"dependencies": {
diff --git a/src/extensionsIntegrated/Phoenix-live-preview/live-preview.css b/src/extensionsIntegrated/Phoenix-live-preview/live-preview.css
index c1a00d0e26..a5a31dc45b 100644
--- a/src/extensionsIntegrated/Phoenix-live-preview/live-preview.css
+++ b/src/extensionsIntegrated/Phoenix-live-preview/live-preview.css
@@ -27,7 +27,7 @@
#panel-live-preview-frame,
#panel-md-preview-frame {
- background-color: white;
+ background-color: transparent;
position: relative;
}
diff --git a/src/extensionsIntegrated/Phoenix-live-preview/panel.html b/src/extensionsIntegrated/Phoenix-live-preview/panel.html
index aa2b432843..91745f6392 100644
--- a/src/extensionsIntegrated/Phoenix-live-preview/panel.html
+++ b/src/extensionsIntegrated/Phoenix-live-preview/panel.html
@@ -62,7 +62,7 @@