mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
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.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user