diff options
-rw-r--r-- | templates/repo/header.tmpl | 2 | ||||
-rw-r--r-- | 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 2f593567d5..f9df406274 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -83,7 +83,7 @@ </div> </form> {{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}} - <div class="ui labeled button" tabindex="0"> + <div class="ui labeled button {{if not $.IsSigned}} disabled{{end}}" tabindex="0"> <a class="ui compact small basic button {{if or (not $.IsSigned) (not $.CanSignedUserFork)}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else if $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{ else }} data-content="{{$.i18n.Tr "repo.fork_guest_user" }}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny"> {{svg "octicon-repo-forked"}}{{$.i18n.Tr "repo.fork"}} </a> diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 7273f5718d..0984dd7cf3 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 { |