Commit 97ac670
committed
feat(lp): fa reload icon + design-mode toggle on the live preview toolbar
- Replace the sprite-backed reload button with fa-arrow-rotate-right so
it matches the weight of the other FA buttons in the toolbar.
- Add #designModeToggleLivePreviewButton between reload and preview-mode
that dispatches VIEW_TOGGLE_DESIGN_MODE, letting the user enter/exit
design mode from the live-preview panel itself without reaching to
the CCB. Icon swaps fa-expand ↔ fa-compress based on the current
design-mode state, title swaps between CCB_SWITCH_TO_DESIGN_MODE and
CCB_SWITCH_TO_CODE_EDITOR.
- Hide #livePreviewModeBtn (the preview-mode dropdown) while in design
mode — its options aren't meaningful when the editor is collapsed.1 parent 1553d34 commit 97ac670
3 files changed
Lines changed: 50 additions & 3 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
205 | 215 | | |
206 | 216 | | |
207 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
341 | 342 | | |
342 | 343 | | |
343 | 344 | | |
| 345 | + | |
344 | 346 | | |
345 | 347 | | |
346 | 348 | | |
347 | 349 | | |
348 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
349 | 354 | | |
350 | 355 | | |
351 | 356 | | |
| |||
761 | 766 | | |
762 | 767 | | |
763 | 768 | | |
| 769 | + | |
764 | 770 | | |
765 | 771 | | |
766 | 772 | | |
| |||
792 | 798 | | |
793 | 799 | | |
794 | 800 | | |
| 801 | + | |
795 | 802 | | |
796 | 803 | | |
797 | 804 | | |
| |||
871 | 878 | | |
872 | 879 | | |
873 | 880 | | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
874 | 906 | | |
875 | 907 | | |
876 | 908 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
| |||
0 commit comments