From 6f4b02298c2fac3921a558f4dec92513242a4ad0 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Sun, 23 Feb 2025 20:46:41 +0100 Subject: [PATCH] deno task fmt --- plugs/index/toc.ts | 10 +++++++--- web/styles/editor.scss | 3 ++- web/styles/theme.scss | 7 ++++--- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/plugs/index/toc.ts b/plugs/index/toc.ts index 82e970b3..ddcd7369 100644 --- a/plugs/index/toc.ts +++ b/plugs/index/toc.ts @@ -72,11 +72,15 @@ export async function widget( (min, header) => Math.min(min, header.level), 6, ); - if (config.minLevel && config.minLevel > minLevel) { minLevel = config.minLevel ;} + if (config.minLevel && config.minLevel > minLevel) minLevel = config.minLevel; let renderedMd = headerText + "\n"; for (const header of headers) { - if (config.maxLevel && header.level > config.maxLevel || (config.minLevel && header.level < config.minLevel)) { continue; } - renderedMd = renderedMd + " ".repeat((header.level - minLevel) * 2) + "[[" + page + "@" + header.pos + "|" + header.name + "]]\n"; + if ( + config.maxLevel && header.level > config.maxLevel || + (config.minLevel && header.level < config.minLevel) + ) continue; + renderedMd = renderedMd + " ".repeat((header.level - minLevel) * 2) + "[[" + + page + "@" + header.pos + "|" + header.name + "]]\n"; } // console.log("Markdown", renderedMd); diff --git a/web/styles/editor.scss b/web/styles/editor.scss index 787ef039..9a4f0962 100644 --- a/web/styles/editor.scss +++ b/web/styles/editor.scss @@ -122,7 +122,8 @@ .cm-list-bullet::after { left: calc( - #{$baseIndent}ch * var(--editor-indent-multiplier) + #{$bulletIndent}ch + 2ch + #{$baseIndent}ch * var(--editor-indent-multiplier) + #{$bulletIndent}ch + + 2ch ); } } diff --git a/web/styles/theme.scss b/web/styles/theme.scss index 4bd892a6..805e12af 100644 --- a/web/styles/theme.scss +++ b/web/styles/theme.scss @@ -125,9 +125,10 @@ html { --editor-directive-color: #696969; --editor-directive-background-color: #ebebeb7d; - --ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, - "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", - "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; + --ui-font: + -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", + Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", + "Segoe UI Symbol", "Noto Color Emoji"; --editor-font: "iA-Mono", "Menlo"; --editor-width: 800px; }