diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl
index 6fcf60daef135..9540c872c2c5c 100644
--- a/templates/repo/view_list.tmpl
+++ b/templates/repo/view_list.tmpl
@@ -8,14 +8,14 @@
{{if .LatestCommitUser}}
{{avatar $.Context .LatestCommitUser 24}}
{{if .LatestCommitUser.FullName}}
- {{.LatestCommitUser.FullName}}
+ {{.LatestCommitUser.FullName}}
{{else}}
- {{if .LatestCommit.Author}}{{.LatestCommit.Author.Name}}{{else}}{{.LatestCommitUser.Name}}{{end}}
+ {{if .LatestCommit.Author}}{{.LatestCommit.Author.Name}}{{else}}{{.LatestCommitUser.Name}}{{end}}
{{end}}
{{else}}
{{if .LatestCommit.Author}}
{{avatarByEmail $.Context .LatestCommit.Author.Email .LatestCommit.Author.Name 24}}
- {{.LatestCommit.Author.Name}}
+ {{.LatestCommit.Author.Name}}
{{end}}
{{end}}
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index 627a5f6c2f6d8..83e8e1f338e1d 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -237,6 +237,8 @@
}
#repo-files-table {
+ table-layout: fixed;
+
thead {
th {
padding-top: 8px;
@@ -2885,7 +2887,8 @@ tbody.commit-list {
vertical-align: baseline;
}
-.message-wrapper {
+.message-wrapper,
+.author-wrapper {
overflow: hidden;
text-overflow: ellipsis;
max-width: calc(100% - 50px);
@@ -2893,6 +2896,10 @@ tbody.commit-list {
vertical-align: middle;
}
+.author-wrapper {
+ max-width: 180px;
+}
+
// in the commit list, messages can wrap so we can use inline
.commit-list .message-wrapper {
display: inline;
@@ -2912,6 +2919,10 @@ tbody.commit-list {
display: block;
max-width: calc(100vw - 70px);
}
+
+ .author-wrapper {
+ max-width: 80px;
+ }
}
@media @mediaMd {
@@ -2920,7 +2931,7 @@ tbody.commit-list {
}
th .message-wrapper {
- max-width: 280px;
+ max-width: 120px;
}
}
@@ -2930,7 +2941,7 @@ tbody.commit-list {
}
th .message-wrapper {
- max-width: 490px;
+ max-width: 350px;
}
}
@@ -2940,7 +2951,7 @@ tbody.commit-list {
}
th .message-wrapper {
- max-width: 680px;
+ max-width: 525px;
}
}