Add Note Width setting to cap editor content width (#137)

This commit is contained in:
Yuri Karamian
2026-06-20 15:01:01 +02:00
parent f0f19125d5
commit 1c46935cc5
8 changed files with 74 additions and 2 deletions
+3
View File
@@ -138,6 +138,9 @@
if (config.line_height) {
document.documentElement.style.setProperty('--editor-line-height', String(config.line_height));
}
if (config.content_width) {
document.documentElement.style.setProperty('--editor-content-width', `${config.content_width}px`);
}
if (config.font_family) {
const fontStacks: Record<string, string> = {
system: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',