diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl index 06b8f1ba155e..612c0f94cab6 100644 --- a/templates/repo/commit_page.tmpl +++ b/templates/repo/commit_page.tmpl @@ -135,7 +135,7 @@ {{end}} {{if IsMultilineCommitMessage .Commit.Message}} -
{{RenderCommitBody $.Context .Commit.Message $.RepoLink $.Repository.ComposeMetas}}
+
{{RenderCommitBody $.Context .Commit.Message $.RepoLink $.Repository.ComposeMetas}}
{{end}} {{template "repo/commit_load_branches_and_tags" .}} diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl index b9d0e617134e..a06c425b73df 100644 --- a/templates/repo/commits_list.tmpl +++ b/templates/repo/commits_list.tmpl @@ -68,7 +68,7 @@ {{end}} {{template "repo/commit_statuses" dict "Status" .Status "Statuses" .Statuses "root" $}} {{if IsMultilineCommitMessage .Message}} -
{{RenderCommitBody $.Context .Message $commitRepoLink $.Repository.ComposeMetas}}
+
{{RenderCommitBody $.Context .Message $commitRepoLink $.Repository.ComposeMetas}}
{{end}} {{if .Committer}} diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 242682593e4e..fb85a53ab7d4 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 {