Commit 2c1430c
committed
feat(design-mode): toolbar-go-live in design mode exits to LP-visible
Clicking #toolbar-go-live while in design mode now exits design mode
and leaves Live Preview open, instead of hiding LP and dropping back to
pure code mode. Outside design mode the button still toggles LP as
before.
Implemented as a capture-phase click listener on #toolbar-go-live that
stops propagation when editorCollapsed is true and calls
_setEditorCollapsed(false, { keepLivePreviewOpen: true }), forcing the
exit path to keep LP regardless of the entry-state snapshot.
Section-6 tests now cover both branches: in design mode the click
exits with LP visible at LP width; outside design mode the click hides
LP normally. Uses native el.click() so the capture-phase listener
actually fires (jQuery's synthetic .trigger("click") would skip it).1 parent 45e9eb8 commit 2c1430c
2 files changed
Lines changed: 51 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
281 | 285 | | |
| 286 | + | |
282 | 287 | | |
283 | 288 | | |
284 | 289 | | |
| |||
337 | 342 | | |
338 | 343 | | |
339 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
340 | 364 | | |
341 | 365 | | |
342 | 366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
657 | | - | |
| 657 | + | |
658 | 658 | | |
659 | | - | |
| 659 | + | |
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | | - | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
666 | 668 | | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
| 669 | + | |
671 | 670 | | |
672 | | - | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
673 | 674 | | |
674 | | - | |
| 675 | + | |
| 676 | + | |
675 | 677 | | |
676 | 678 | | |
677 | | - | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
678 | 692 | | |
679 | 693 | | |
680 | 694 | | |
| |||
0 commit comments