From 4b1543e98dbf0a6f91a932239ef1cc32cfd5c638 Mon Sep 17 00:00:00 2001 From: freedit-dev Date: Fri, 15 Nov 2024 17:38:02 +0800 Subject: [PATCH] add pre style for post codeblock --- static/style.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/style.css b/static/style.css index a9d893a..d53e5c9 100644 --- a/static/style.css +++ b/static/style.css @@ -1199,6 +1199,12 @@ a.search_subreddit:hover { overflow-wrap: anywhere; } +.post_body pre { + background: var(--background); + overflow-x: auto; + margin: 10px 0; +} + .post_body img { max-width: 100%; display: block;