Merge pull request #730: fix(file-preview): let rendered Markdown fill the resized window

This commit is contained in:
Codeman maintainer committed 2026-10-28 09:10:08 +01:00
commit 9ee6df027d
3 files changed
+37 -3

No files matched your search

+10 -2
View File
@@ -12571,13 +12571,21 @@ html:is([data-skin="paper-gray"], [data-skin="solarized-light"], [data-skin="cat
/* ---- File Viewer rendered markdown ----
Styling comes from the Response Viewer's .rv-text rules; .rv-text itself
carries no padding or base font (the chat card supplies those). */
carries no padding or base font (the chat card supplies those).
No width cap. The window is whatever the user drags or expands it to, so the
document must reflow to fill it; the fixed 960px reading column this rule
shipped before the resize grip existed stops reflow once the window is wider
than the cap. --rv-content-max: none lets ASCII-diagram blocks
(.rv-text .rv-diagram-wrap, capped by that variable with a 720px fallback
meant for the Response Viewer) follow the rest of the document too. Pinned by
test/file-preview-window.test.ts. */
.file-preview-body > .file-preview-md {
padding: 1rem 1.25rem 2rem;
font-size: 15px;
line-height: 1.55;
max-width: 960px;
--rv-content-max: none;
}
/* Relative links in the document are rebased onto a.rv-path so the Response