Commit e10123b
committed
fix(mdviewer): scroll restore, format bar in code blocks, test stability
- Fix scroll position not restored after reload: send MDVIEWR_SOURCE_LINES
only after edit-mode content changes, not during initial load/reload
where it would cause reflows that reset scroll position
- Force light theme via no-op handleSetTheme (HTML default is light)
- Hide format bar when selection is inside code blocks
- Add beforeEach cleanup in Document Cache test suite to prevent state
leakage between scroll position tests1 parent a901cd8 commit e10123b
4 files changed
Lines changed: 20 additions & 22 deletions
File tree
- src-mdviewer/src
- components
- src/extensionsIntegrated/Phoenix-live-preview
- test/spec
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
803 | | - | |
| 803 | + | |
804 | 804 | | |
805 | 805 | | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
| 806 | + | |
| 807 | + | |
812 | 808 | | |
813 | 809 | | |
814 | 810 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
227 | 234 | | |
228 | 235 | | |
229 | 236 | | |
| |||
Lines changed: 2 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
362 | 361 | | |
363 | 362 | | |
364 | | - | |
| 363 | + | |
365 | 364 | | |
366 | 365 | | |
367 | 366 | | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | 367 | | |
373 | 368 | | |
374 | 369 | | |
| |||
380 | 375 | | |
381 | 376 | | |
382 | 377 | | |
383 | | - | |
384 | 378 | | |
385 | 379 | | |
386 | | - | |
| 380 | + | |
387 | 381 | | |
388 | 382 | | |
389 | 383 | | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | 384 | | |
397 | 385 | | |
398 | 386 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
632 | 639 | | |
633 | 640 | | |
634 | 641 | | |
| |||
0 commit comments