Skip to content

Build your personal knowledge base with Trilium Notes

chore(text): make sure tab size constant is available regardless of theme

Elian Doranb2ec9a2f47da
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index 0ffd81bf02..c1672f50c4 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -2701,3 +2701,7 @@ iframe.print-iframe {
line-height: 1.4;
white-space: pre-wrap;
}
+
+.ck-content pre code {
+ tab-size: var(--code-block-tab-width, 4);
+}
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css
index 8e0f1d195e..252a3da6b2 100644
--- a/apps/client/src/stylesheets/theme-next/notes/text.css
+++ b/apps/client/src/stylesheets/theme-next/notes/text.css
@@ -667,10 +667,6 @@ html .note-detail-editable-text :not(figure, .include-note, hr):first-child {
white-space: pre;
}
-.ck-content pre code {
- tab-size: var(--code-block-tab-width, 4);
-}
-
.code-sample-wrapper .hljs {
transition: background-color linear 100ms;
}