diff --git a/templates/repo/pulls/commits_list.tmpl b/templates/repo/pulls/commits_list.tmpl index 4026824213..ab10d68c79 100644 --- a/templates/repo/pulls/commits_list.tmpl +++ b/templates/repo/pulls/commits_list.tmpl @@ -79,6 +79,36 @@ {{if .Committer}}{{DateUtils.TimeSince .Committer.When}}{{else}}{{DateUtils.TimeSince .Author.When}}{{end}} +
+ +
+
{{if not $.PageIsWiki}} @@ -96,8 +126,8 @@ href="{{if $.FileName}}{{printf "%s/src/commit/%s/%s" $commitRepoLink (PathEscape .ID.String) (PathEscapeSegments $.FileName)}}{{else}}{{printf "%s/src/commit/%s" $commitRepoLink (PathEscape .ID.String)}}{{end}}"> {{svg "octicon-file-code"}} - {{end}} -
+ {{end}} + {{end}} diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 07e0b164ad..f178fab75a 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -2777,6 +2777,7 @@ tbody.commit-list { grid-template-columns: minmax(8ch, 15%) 1fr minmax(20ch, 1%) minmax(10ch, 10%) auto; align-items: center; .author {margin-right: 10%} + .mobile-btn {display: none;} /*hiding the button in desktop view, only accessible in mobile view*/ } @media (max-width: 640px) { @@ -2789,13 +2790,16 @@ tbody.commit-list { grid-column: 1; } - .commit-ui-redesign .btn { + .commit-ui-redesign .mobile-btn { grid-row: 1; grid-column: 2; justify-self: end; padding-inline: 0.5rem; + display: flex; } + .commit-ui-redesign .btn { display: none;} /* manually hiding it, but we need to write this in a better way, */ + .commit-ui-redesign .message { grid-row: 2; grid-column: 1 / span 2;