summaryrefslogtreecommitdiffstats
path: root/web_src/less/markup/content.less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-02-24 18:05:36 +0100
committerGitHub <noreply@github.com>2023-02-24 17:05:36 +0000
commitf0340c28f15609251434400175a806f0b51e7f74 (patch)
treeba724898703d1b8dbcab18b01814500dbd4a270f /web_src/less/markup/content.less
parent5beb29ad35bcf070641b20b2c31013ecda1e2763 (diff)
downloadgitea-f0340c28f15609251434400175a806f0b51e7f74.tar.gz
gitea-f0340c28f15609251434400175a806f0b51e7f74.zip
Change style to improve whitespaces trimming inside inline markdown code (#23093) (#23120)
Backport #23093 Given mardown source ``` x ` a` y x `a ` y x ` a ` y ``` Render <img width="1421" alt="2023-02-23 15 33 14" src="https://user-images.githubusercontent.com/17645053/220844280-a304c788-ac79-4a26-a55a-0db00f2fb3f3.png"> Fixes #23080. Co-authored-by: HesterG <hestergong@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'web_src/less/markup/content.less')
-rw-r--r--web_src/less/markup/content.less1
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/less/markup/content.less b/web_src/less/markup/content.less
index 2a9ca3db5a..725a3d9886 100644
--- a/web_src/less/markup/content.less
+++ b/web_src/less/markup/content.less
@@ -415,6 +415,7 @@
padding: .2em .4em;
margin: 0;
font-size: 85%;
+ white-space: break-spaces;
background-color: var(--color-markup-code-block);
border-radius: 4px;
}