From eefa68666171e3fcf413a00b1e91aebe8e9874e5 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Tue, 15 Aug 2023 11:47:48 +0200 Subject: [PATCH] fix: add `word-break: break-word;` to `` and `` (#860) closes https://github.com/CaiJimmy/hugo-theme-stack/issues/746 --- assets/scss/partials/layout/article.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/scss/partials/layout/article.scss b/assets/scss/partials/layout/article.scss index 97c7e77..e030b4d 100644 --- a/assets/scss/partials/layout/article.scss +++ b/assets/scss/partials/layout/article.scss @@ -264,6 +264,11 @@ font-family: var(--code-font-family); } + a, + code { + word-break: break-word; + } + .gallery { position: relative; display: flex;