mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-14 10:39:32 +01:00
Merge pull request #730: fix(file-preview): let rendered Markdown fill the resized window
This commit is contained in:
commit
9ee6df027d
3 files changed
+37
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user