From f4ce10c6a35b90b8e3943bbb66fa63e731d56e08 Mon Sep 17 00:00:00 2001 From: Norwin Date: Mon, 8 Mar 2021 17:55:37 +0000 Subject: [PATCH] Minor UI fixes (#14926) * disable fork button when not signed in * fix commit body styling on PR page * fixup! fix commit body styling on PR page --- templates/repo/header.tmpl | 2 +- web_src/less/_repository.less | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 2f593567d..f9df40627 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -83,7 +83,7 @@ {{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}} -
+
{{svg "octicon-repo-forked"}}{{$.i18n.Tr "repo.fork"}} diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 7273f5718..0984dd7cf 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -2768,12 +2768,17 @@ tbody.commit-list { .commit-body { white-space: pre-wrap; + line-height: initial; } .repository:not(.diff) { - .commit-body { + .commit-body { // commit history list margin: 0; } + + .timeline-item .commit-body { // PR-comment + margin-left: 40px; + } } .git-notes.top {