diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2021-10-25 15:40:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-25 09:40:38 +0200 |
commit | a961666c380cb763dce3541602612a2e23a8ef15 (patch) | |
tree | a3ec6369f5347e152033a37ea5977695e0678b29 /web_src | |
parent | 7c951fdd4a9dc15313522ac27aacd687687ddafc (diff) | |
download | gitea-a961666c380cb763dce3541602612a2e23a8ef15.tar.gz gitea-a961666c380cb763dce3541602612a2e23a8ef15.zip |
fix markdown checkbox rendering (#17425)
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/less/markup/content.less | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web_src/less/markup/content.less b/web_src/less/markup/content.less index e86e2d9f99..71e98652c8 100644 --- a/web_src/less/markup/content.less +++ b/web_src/less/markup/content.less @@ -159,12 +159,18 @@ .task-list-item { list-style-type: none; position: relative; + line-height: 1.5rem; + min-height: 1.5rem; // to render a checkbox list without content `- [ ]`, we need this min-height to make sure the <li> can be visible input[type="checkbox"] { position: absolute; top: .25em; left: -1.6em; } + + p { + line-height: 1.5rem; + } } .task-list-item + .task-list-item { |