From ffcc18a74fc89fe67338b895d18f3558e88642a0 Mon Sep 17 00:00:00 2001 From: sawka Date: Mon, 11 Mar 2024 12:03:15 -0700 Subject: [PATCH] cleanup line-height/padding for code blocks --- src/app/common/elements/markdown.less | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/common/elements/markdown.less b/src/app/common/elements/markdown.less index 8316071a9..36b4cb5cc 100644 --- a/src/app/common/elements/markdown.less +++ b/src/app/common/elements/markdown.less @@ -49,11 +49,13 @@ pre { background-color: var(--markdown-bg-color); margin: 4px 10px 4px 10px; - padding: 6px 6px 6px 10px; + padding: 0.7em; border-radius: 4px; code { background-color: transparent; + padding: 0; + line-height: normal; } } @@ -66,6 +68,8 @@ font-family: var(--termfontfamily); border-radius: 4px; background-color: var(--markdown-bg-color); + padding: 0.15em 0.5em; + line-height: 1.5; } .title {