Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

fix: preview fold wrapper retains stale height after toggling edit mode

Open PathGao opened this issue 4 months ago • 0 comments

Reproduction: open a document containing a foldable/admonition block in preview, enter edit mode, then return to preview. The wrapper may retain a stale --fold-content-height, leaving a large blank area below its content. Screenshots supplied by reporter show the regression.\n\nSuspected boundary: observeFoldLayout lifecycle in MarkdownViewer.svelte and foldLayout.ts; verify the observer is attached after the preview DOM is committed and clears/re-measures inline height on each preview remount.

PathGao avatar Jul 24 '26 19:07 PathGao