From ca2a1b550cb8fec5340273ca364c9f08e64d0e31 Mon Sep 17 00:00:00 2001 From: Norwin Roosen Date: Mon, 8 Mar 2021 11:10:16 +0100 Subject: [PATCH 1/3] disable fork button when not signed in --- templates/repo/header.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 2f593567d5d75..f9df4062747b3 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"}} From b88f93d9cd91d1d41e4c3a1ca0301b15471dcd85 Mon Sep 17 00:00:00 2001 From: Norwin Roosen Date: Mon, 8 Mar 2021 11:10:40 +0100 Subject: [PATCH 2/3] fix commit body styling on PR page --- web_src/less/_repository.less | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 7273f5718d63d..f5c1cb67f818a 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -2768,12 +2768,18 @@ 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; + line-height: initial; + } } .git-notes.top { From 9a37879d3a1866fadbd6c03bc1a83d12f951e499 Mon Sep 17 00:00:00 2001 From: Norwin Roosen Date: Mon, 8 Mar 2021 11:43:45 +0100 Subject: [PATCH 3/3] fixup! fix commit body styling on PR page --- web_src/less/_repository.less | 1 - 1 file changed, 1 deletion(-) diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index f5c1cb67f818a..0984dd7cf3a6f 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -2778,7 +2778,6 @@ tbody.commit-list { .timeline-item .commit-body { // PR-comment margin-left: 40px; - line-height: initial; } }