diff --git a/templates/repo/commit_statuses.tmpl b/templates/repo/commit_statuses.tmpl
index f451ac06a1..a6f75584a3 100644
--- a/templates/repo/commit_statuses.tmpl
+++ b/templates/repo/commit_statuses.tmpl
@@ -1,10 +1,10 @@
{{if .Statuses}}
{{if and (eq (len .Statuses) 1) .Status.TargetURL}}
-
+
{{template "repo/commit_status" .Status}}
{{else}}
-
+
{{template "repo/commit_status" .Status}}
{{end}}
diff --git a/templates/repo/latest_commit.tmpl b/templates/repo/latest_commit.tmpl
index b176b4190c..c62efc8e88 100644
--- a/templates/repo/latest_commit.tmpl
+++ b/templates/repo/latest_commit.tmpl
@@ -3,7 +3,7 @@
…
{{else}}
{{if .LatestCommitUser}}
- {{ctx.AvatarUtils.Avatar .LatestCommitUser 24 "tw-mr-1"}}
+ {{ctx.AvatarUtils.Avatar .LatestCommitUser 24}}
{{if and .LatestCommitUser.FullName DefaultShowFullName}}
{{.LatestCommitUser.FullName}}
{{else}}
@@ -11,7 +11,7 @@
{{end}}
{{else}}
{{if .LatestCommit.Author}}
- {{ctx.AvatarUtils.AvatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 24 "tw-mr-1"}}
+ {{ctx.AvatarUtils.AvatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 24}}
{{.LatestCommit.Author.Name}}
{{end}}
{{end}}
diff --git a/web_src/css/repo.css b/web_src/css/repo.css
index 3ab8acb07f..65eb3b6cf4 100644
--- a/web_src/css/repo.css
+++ b/web_src/css/repo.css
@@ -123,6 +123,12 @@ td .commit-summary {
gap: 0.25em;
}
+@media (max-width: 767.98px) {
+ .latest-commit .commit-id-short {
+ display: none;
+ }
+}
+
.repo-path {
display: flex;
overflow-wrap: anywhere;
@@ -1670,6 +1676,10 @@ tbody.commit-list {
white-space: nowrap;
}
+.latest-commit .message-wrapper {
+ max-width: calc(100% - 2.5rem);
+}
+
/* in the commit list, messages can wrap so we can use inline */
.commit-list .message-wrapper {
display: inline;