]> source.dussan.org Git - gitea.git/commit
More fixes for the "commit-body" (#26898) 26050/head
authorwxiaoguang <wxiaoguang@gmail.com>
Mon, 4 Sep 2023 13:38:59 +0000 (21:38 +0800)
committerGitHub <noreply@github.com>
Mon, 4 Sep 2023 13:38:59 +0000 (13:38 +0000)
commit682552378f974f2ca2373951fbc86512bfb32ead
treeb79f93ab2e2dcb5f7fbd73d3bdf564083b6574bd
parentc17fd68be7334368d54d3c16c3720e1f92376479
More fixes for the "commit-body" (#26898)

The changes for "commit-body" in #26877 are not ideal.

The reason is: the "commit-body" is usually a `<pre>`, it has default
margins. In most cases, we do not need that large margin. So, this PR
introduces a general but small margin for all "commit-body" elements.
Then these `gt-m-0` could be removed.

The `:not` selector is not needed, because the `.timeline-item` selector
is already clear enough.
templates/repo/commit_page.tmpl
templates/repo/commits_list.tmpl
web_src/css/repo.css