Skip to content

Commit ddd682b

Browse files
committed
Fix issues on commit list page
1 parent 7828478 commit ddd682b

File tree

3 files changed

+25
-8
lines changed

3 files changed

+25
-8
lines changed

templates/repo/branch/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</h4>
1010

1111
<div class="ui attached table segment">
12-
<table class="ui very basic striped fixed table single line unstackable table">
12+
<table class="ui very basic striped fixed single line unstackable table">
1313
<tbody>
1414
<tr>
1515
<td class="six wide">

templates/repo/commits_list.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
{{if .User.FullName}}
1919
{{$userName = .User.FullName}}
2020
{{end}}
21-
{{avatar .User 28 "mr-2"}}<a href="{{AppSubUrl}}/{{.User.Name}}">{{$userName}}</a>
21+
{{avatar .User 28 "mr-3"}}<a href="{{AppSubUrl}}/{{.User.Name}}">{{$userName}}</a>
2222
{{else}}
23-
{{avatarByEmail .Author.Email .Author.Name 28 "mr-2"}}
23+
{{avatarByEmail .Author.Email .Author.Name 28 "mr-3"}}
2424
{{$userName}}
2525
{{end}}
2626
</td>
@@ -65,7 +65,6 @@
6565
{{ $commitLink:= printf "%s/%s/%s/commit/%s" AppSubUrl $.Username $.Reponame .ID }}
6666
<span class="commit-summary {{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject .Message $.RepoLink $commitLink $.Repository.ComposeMetas}}</span>
6767
{{end}}
68-
</span>
6968
{{if IsMultilineCommitMessage .Message}}
7069
<button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button>
7170
{{end}}
@@ -75,6 +74,7 @@
7574
{{if IsMultilineCommitMessage .Message}}
7675
<pre class="commit-body" style="display: none;">{{RenderCommitBody .Message $.RepoLink $.Repository.ComposeMetas}}</pre>
7776
{{end}}
77+
</span>
7878
</td>
7979
<td class="text right age">{{TimeSince .Author.When $.Lang}}</td>
8080
</tr>

web_src/less/_repository.less

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2714,10 +2714,27 @@ tbody.commit-list {
27142714
}
27152715

27162716
.message-wrapper {
2717-
overflow: hidden;
2718-
text-overflow: ellipsis;
2719-
max-width: calc(100% - 21px);
2720-
display: block;
2717+
display: flex;
2718+
flex-wrap: wrap;
2719+
align-items: center;
2720+
2721+
.commit-summary {
2722+
overflow: hidden;
2723+
text-overflow: ellipsis;
2724+
display: block;
2725+
flex: 1;
2726+
max-width: max-content;
2727+
min-width: .5em;
2728+
}
2729+
2730+
.commit-button {
2731+
margin-right: 0;
2732+
margin-left: .25rem;
2733+
}
2734+
2735+
.commit-statuses-trigger {
2736+
flex: 100%;
2737+
}
27212738
}
27222739

27232740
@media (max-width: 480px) {

0 commit comments

Comments
 (0)