Guochao
a2a26901e6
fix(markdown): preview TOC dismiss-on-outside-click, popover z-index, code-block banner stickiness
...
Three preview (render) bugs where DSH's chat-optimized markdown primitives
leak into the file-preview scroll world:
- CodeBlock banner: DSH's bannerWrap is position:sticky (top:0, z-index:6) so a
block keeps its copy action reachable inside a per-message scroll container.
In the preview every fence shares one .editorMd scroll container, so the
banner pins to the viewport top until the whole block scrolls past and reads
as a floating header. Neutralize stickiness for non-mermaid fences in the
preview (mermaid chrome replaces the banner and is excluded via
data-mermaid-processed).
- TOC popover z-index: .tocBar was z-index:3, below the code banner's 6, so the
outline panel painted beneath a sticky fence header. Raise the bar to 7.
- TOC dismissal: only the toggle re-click closed the popover. Add a document
pointerdown listener that closes on an outside press (blank preview space),
exempting the button and panel so the toggle still flips.
Adds md-toc unit coverage for outside-click dismiss and toggle-preserving
behavior; records the deviations in the TOC design doc.
2026-09-03 09:56:31 +08:00
..
2026-09-02 23:37:40 +08:00
2026-08-18 20:29:14 +08:00
2026-08-16 22:32:17 +08:00
2026-08-27 21:44:04 +08:00
2026-08-29 15:31:12 +08:00
2026-08-26 18:33:52 +08:00
2026-08-15 00:28:59 +08:00
2026-08-24 16:41:02 +08:00
2026-08-21 23:49:13 +08:00
2026-08-12 18:27:28 +08:00
2026-08-20 02:09:36 +08:00
2026-08-11 19:28:48 +08:00
2026-08-11 19:28:48 +08:00
2026-08-31 17:52:59 +08:00
2026-09-01 16:01:34 +08:00
2026-08-29 15:31:05 +08:00
2026-08-31 01:31:22 +08:00
2026-08-31 17:52:59 +08:00
2026-08-18 01:22:28 +08:00
2026-08-30 23:42:16 +08:00
2026-08-14 21:28:41 +08:00
2026-08-29 15:31:13 +08:00
2026-08-21 01:28:17 +08:00
2026-08-31 01:31:22 +08:00
2026-08-31 01:31:22 +08:00
2026-09-02 21:43:34 +08:00
2026-08-24 18:40:04 +08:00
2026-08-11 11:16:36 +08:00
2026-08-24 18:40:04 +08:00
2026-08-29 15:49:19 +08:00
2026-08-29 15:49:19 +08:00
2026-09-02 10:55:03 +08:00
2026-08-29 15:49:19 +08:00
2026-08-18 18:05:01 +08:00
2026-08-22 22:50:13 +08:00
2026-08-29 15:31:16 +08:00
2026-08-24 17:54:33 +08:00
2026-08-23 10:28:05 +08:00
2026-08-23 02:50:37 +08:00
2026-08-16 23:35:57 +08:00
2026-08-16 23:35:57 +08:00
2026-08-29 15:31:08 +08:00
2026-08-31 01:31:22 +08:00
2026-08-24 14:18:18 +08:00
2026-08-31 01:31:22 +08:00
2026-08-16 23:35:57 +08:00
2026-08-12 01:16:20 +08:00
2026-08-24 17:54:33 +08:00
2026-09-02 21:43:34 +08:00
2026-09-01 16:01:34 +08:00
2026-08-21 23:41:33 +08:00
2026-08-14 22:30:34 +08:00
2026-08-15 15:05:06 +08:00
2026-09-01 16:01:34 +08:00
2026-08-30 23:42:16 +08:00
2026-08-13 10:26:57 +08:00
2026-09-02 23:15:19 +08:00
2026-08-24 12:05:14 +08:00
2026-08-24 12:05:14 +08:00
2026-08-23 22:02:47 +08:00
2026-08-24 18:40:04 +08:00
2026-08-30 23:42:16 +08:00
2026-09-03 09:56:31 +08:00
2026-08-18 01:22:28 +08:00
2026-08-23 01:50:07 +08:00
2026-08-18 01:22:28 +08:00
2026-09-02 10:27:43 +08:00
2026-08-14 14:53:03 +08:00
2026-08-22 23:19:17 +08:00
2026-08-22 23:19:17 +08:00
2026-09-02 23:13:57 +08:00
2026-08-11 11:22:28 +08:00
2026-09-02 23:51:13 +08:00
2026-08-16 23:35:57 +08:00
2026-08-26 21:40:32 +08:00
2026-08-16 23:35:57 +08:00
2026-08-14 23:04:25 +08:00
2026-08-31 17:52:59 +08:00
2026-09-02 23:26:04 +08:00
2026-08-16 23:06:44 +08:00
2026-08-21 00:48:16 +08:00
2026-08-18 19:56:04 +08:00
2026-08-24 18:40:04 +08:00
2026-08-13 01:39:59 +08:00
2026-08-29 15:31:13 +08:00
2026-08-23 23:44:18 +08:00
2026-09-02 23:20:17 +08:00
2026-08-16 16:24:28 +08:00
2026-08-21 01:28:17 +08:00
2026-08-20 02:09:36 +08:00
2026-08-24 01:19:43 +08:00
2026-09-02 23:26:04 +08:00
2026-08-24 16:41:02 +08:00
2026-08-22 00:15:06 +08:00
2026-08-22 15:34:05 +08:00
2026-09-02 21:43:34 +08:00
2026-09-02 21:43:34 +08:00
2026-09-01 16:01:34 +08:00
2026-08-31 23:28:20 +08:00
2026-08-31 17:52:59 +08:00
2026-09-02 23:26:04 +08:00
2026-08-21 18:15:49 +08:00
2026-08-22 15:34:05 +08:00
2026-08-21 18:15:49 +08:00
2026-08-13 09:06:55 +08:00
2026-08-21 18:15:49 +08:00
2026-09-02 21:43:34 +08:00
2026-08-26 18:42:34 +08:00
2026-08-23 23:44:18 +08:00
2026-08-23 23:44:18 +08:00
2026-08-26 21:40:32 +08:00
2026-08-17 00:06:20 +08:00
2026-08-29 15:49:35 +08:00
2026-08-27 21:44:32 +08:00
2026-08-16 16:37:11 +08:00
2026-08-21 01:28:17 +08:00
2026-08-27 21:44:04 +08:00
2026-08-18 23:23:17 +08:00
2026-08-24 01:36:29 +08:00
2026-08-20 18:28:57 +08:00
2026-08-21 01:28:17 +08:00