From 95746f8826548e0997ebd3fdab7b30b9fe8a66bf Mon Sep 17 00:00:00 2001 From: Nafas Ebrahimi Date: Wed, 29 Apr 2026 12:03:41 +0330 Subject: [PATCH] fix: Fix mobile horizontal scroll caused by code blocks --- source/stylesheets/custom.css.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/stylesheets/custom.css.scss b/source/stylesheets/custom.css.scss index 941faa3..ff0f789 100644 --- a/source/stylesheets/custom.css.scss +++ b/source/stylesheets/custom.css.scss @@ -13,3 +13,11 @@ table td .long { max-width: calc(25vw - 115px); word-wrap: break-word; } + +// Fix horizontal scroll on mobile - code blocks +pre, code { + overflow-x: auto; + max-width: 100%; + white-space: pre; + word-wrap: normal; +}