Skip to content

Build your personal knowledge base with Trilium Notes

feat(print): improve code block style

Elian Doran901d2d72aebc
diff --git a/src/public/stylesheets/print.css b/src/public/stylesheets/print.css
index 675b492ac5..606e2f4340 100644
--- a/src/public/stylesheets/print.css
+++ b/src/public/stylesheets/print.css
@@ -165,6 +165,11 @@ span[style] {
overflow: unset !important;
}
+/* TODO: This will break once we translate the language */
+.ck-content pre[data-language="Auto-detected"]:after {
+ display: none !important;
+}
+
/*
* Code note specific fixes.
*/
@@ -300,6 +305,8 @@ blockquote {
pre > code {
widows: 6;
orphans: 6;
+ overflow: auto;
+ white-space: pre-wrap !important;
}
h1,