mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 00:03:12 +00:00
feat(markdown): set the preview font size apart from the UI font (#1045)
The Markdown preview had a fixed 14px body and notebook Markdown cells inherited the UI font size, so enlarging them meant scaling the whole UI. Languages & Frameworks › Markdown › Preview font size (application-level, 8–72, following the editor font size until set) now drives the preview and notebook Markdown cells; fenced code scales with it, and notebook code cells and outputs follow the editor font. Fixes #768 Co-authored-by: jaw52 <53564781+jaw52@users.noreply.github.com>
This commit is contained in:
@@ -121,7 +121,8 @@
|
||||
.rawCell pre {
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
font: var(--fs-code) / var(--lh-code, 1.5) var(--font-mono);
|
||||
font: var(--openidea-editor-font-size, var(--fs-code)) / var(--openidea-editor-line-height, var(--lh-code, 1.5))
|
||||
var(--font-mono);
|
||||
margin: 0;
|
||||
user-select: text;
|
||||
}
|
||||
@@ -160,6 +161,7 @@
|
||||
.markdown {
|
||||
padding: 8px 14px;
|
||||
min-height: 32px;
|
||||
font-size: var(--markdown-preview-font-size, var(--fs-ui));
|
||||
overflow-wrap: anywhere;
|
||||
line-height: 1.6;
|
||||
user-select: text;
|
||||
|
||||
Reference in New Issue
Block a user