]> source.dussan.org Git - gitea.git/commitdiff
Minor UI fixes (#14926)
authorNorwin <noerw@users.noreply.github.com>
Mon, 8 Mar 2021 17:55:37 +0000 (17:55 +0000)
committerGitHub <noreply@github.com>
Mon, 8 Mar 2021 17:55:37 +0000 (18:55 +0100)
* 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
web_src/less/_repository.less

index 2f593567d5d75db9431854780ff0b0725d127f28..f9df4062747b329482b036b9f272874af1b4134e 100644 (file)
@@ -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>
index 7273f5718d63dd7bd7a02d5e9bd6a9e659f280ab..0984dd7cf3a6f92bc707cb1bf7475b311cb34668 100644 (file)
@@ -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 {