diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-09-04 21:38:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-04 13:38:59 +0000 |
commit | 682552378f974f2ca2373951fbc86512bfb32ead (patch) | |
tree | b79f93ab2e2dcb5f7fbd73d3bdf564083b6574bd /web_src | |
parent | c17fd68be7334368d54d3c16c3720e1f92376479 (diff) | |
download | gitea-682552378f974f2ca2373951fbc86512bfb32ead.tar.gz gitea-682552378f974f2ca2373951fbc86512bfb32ead.zip |
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.
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/css/repo.css | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 242682593e..fb85a53ab7 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -2620,13 +2620,14 @@ tbody.commit-list { } .commit-body { + margin: 0.25em 0; white-space: pre-wrap; line-height: initial; } /* PR-comment */ -.repository:not(.diff) .timeline-item .commit-body { - margin-left: 40px; +.repository .timeline-item .commit-body { + margin-left: 45px; } .git-notes.top { |