Skip to content

Commit a4cea31

Browse files
committed
feat: live preview reload and design mode
1 parent 9bb9450 commit a4cea31

3 files changed

Lines changed: 18 additions & 15 deletions

File tree

docs/08-Features/08-Live Preview/index.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,33 +69,36 @@ Phoenix Code provides various options in the Live Preview toolbar.
6969
7070
### Toolbar Options
7171

72-
![Live Preview reload](../images/livePreview/lp-reload.png "Live Preview reload")
72+
![Live Preview left toolbar](../images/livePreview/lp-left.png "Reload, Design Mode, and the mode controls")
7373

74-
* **Reload Live Preview** — Refreshes the Live Preview page. Use this when Live Preview lags behind or doesn't update with your code changes.
74+
The left side of the toolbar groups three controls:
7575

76+
* **Reload Live Preview**: The leftmost icon is the reload icon. Clicking on it refreshes the Live Preview. It is useful when Live Preview gets out of sync with your code.
7677

77-
![Live Preview mode](../images/livePreview/lp-mode.png "Live Preview mode")
78+
* **Design Mode**: The maximize icon after the reload button is for Design Mode. This mode hides the editor and expands the Live Preview to take over the full window, giving you more room to work on the page with [Edit Mode](../../Pro%20Features/edit-mode-live-preview) or [Phoenix Code AI](../../Pro%20Features/ai-chat). Click the icon again to exit Design Mode.
7879

79-
* **Live Preview Modes** - Live Preview offers 3 modes:
80+
* **Edit / Preview Toggle**: The pencil icon. Toggles between **Edit Mode** *(Pro)* and **Preview Mode**. The pencil lights up when Edit Mode is active. Press `F8` for the same toggle.
8081

81-
- **Preview Mode**: View-only. The page behaves like a normal browser, but still updates in real-time as you edit code.
82+
<VideoPlayer
83+
src="https://docs-images.phcode.dev/videos/live-preview-edit/live-preview-edit.mp4"
84+
/>
85+
86+
* **Mode Dropdown**: The chevron next to the pencil opens a menu of Live Preview modes:
87+
88+
![Live Preview mode dropdown](../images/livePreview/lp-mode.png "Live Preview mode dropdown")
8289

83-
- **Highlight Mode**: Click any element to see its size, padding, and margins. Phoenix Code jumps to that element in your source code so you can start editing right away.
90+
- **Preview Mode**: View-only. The page behaves like a normal browser but still updates in real-time as you edit code.
91+
- **Highlight Mode**: Click any element to see its size, padding, and margins. Phoenix Code jumps to that element in your source code so you can start editing.
92+
- **Edit Mode** *(Pro)*: Edit elements directly in the preview, change text, drag elements, swap images, and more. Phoenix Code updates your source code automatically. [Learn more](../../Pro%20Features/edit-mode-live-preview).
8493

8594
<VideoPlayer
8695
src="https://docs-images.phcode.dev/videos/live-preview/highlight-mode.mp4"
8796
/>
8897

89-
- **Edit Mode** *(Pro)*: Edit elements directly in the preview-change text, drag elements, swap images, and more. Phoenix Code updates your source code automatically. [Learn more](../../Pro%20Features/edit-mode-live-preview).
90-
91-
92-
<VideoPlayer
93-
src="https://docs-images.phcode.dev/videos/live-preview/preview-mode-btn.mp4"
94-
/>
98+
When Edit Mode is active (Pro), two extra options appear in the same dropdown:
9599

96-
* **Preview Mode Button** — Located next to the Reload button, this provides a quick shortcut to switch modes.
97-
Clicking the button switches to **Preview Mode**. On **Phoenix Pro Edition**, a second click returns to **Edit Mode**. On **Phoenix Community Edition**, a second click switches to **Highlight Mode**.
98-
You can also use the keyboard shortcut `F8` to toggle Preview Mode.
100+
- **Inspect Element on Hover**: Highlights elements as you hover, instead of only on click.
101+
- **Show Measurements**: Shows ruler-style guide lines around the selected element with its size and spacing.
99102

100103

101104
![Live Preview center toolbar](../images/livePreview/lp-central.png "Live Preview pin, file name, and pop out")
19.2 KB
Loading
-12.1 KB
Loading

0 commit comments

Comments
 (0)