From 901d2d72aebc794788533c297432982dc7856339 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 4 Mar 2025 09:29:46 +0200 Subject: [PATCH] feat(print): improve code block style --- src/public/stylesheets/print.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/public/stylesheets/print.css b/src/public/stylesheets/print.css index 675b492ac..606e2f434 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,