Commit 3db2e12
fix: collapse long proposed plans by truncating DOM content
The collapsed state rendered the full plan markdown in the DOM and
relied on CSS overflow-hidden to clip it visually. This caused the
browser test to correctly detect hidden text still present in
document.body.textContent.
Compute markdownPreview whenever the plan is collapsible (not only
when a checklist is present) so the collapsed state renders a
truncated preview instead of the full content.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 88f75d3 commit 3db2e12
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 61 | | |
68 | 62 | | |
69 | 63 | | |
70 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments