From 764e110d32c4cef50cdc993c818b3dac752d80e7 Mon Sep 17 00:00:00 2001 From: Junyi Date: Tue, 23 Apr 2024 13:00:52 +0800 Subject: [PATCH] fix: fix the "pre" and "code" have different width when codefences are too wide --- assets/css/main.css | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/css/main.css b/assets/css/main.css index 0c76ba4..723b007 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -252,6 +252,7 @@ div.highlight pre { border: none; display: grid; margin: 0px; + overflow: auto; /* Have to add this line, otherwise the "pre" and "code" will have different width */ /* padding-left: 10px; */ /* padding-right: 10px; */ /* padding-top: 10px; */