File tree 6 files changed +18
-7
lines changed
6 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 67
67
{{end}}
68
68
</span>
69
69
{{if IsMultilineCommitMessage .Message}}
70
- <button class="basic compact mini ui icon button commit -button"><i class="ellipsis horizontal icon"></i> </button>
70
+ <button class="ui button ellipsis -button" aria-expanded="false">... </button>
71
71
{{end}}
72
72
{{template "repo/commit_statuses" dict "Status" .Status "Statuses" .Statuses "root" $}}
73
73
{{if IsMultilineCommitMessage .Message}}
Original file line number Diff line number Diff line change 49
49
{{ $commitLink:= printf "%s/commit/%s" $.comment.Issue.PullRequest.BaseRepo.Link (PathEscape .ID.String) }}
50
50
<span class="mono commit-summary {{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject .Message ($.comment.Issue.PullRequest.BaseRepo.Link|Escape) $commitLink $.comment.Issue.PullRequest.BaseRepo.ComposeMetas}}</span>
51
51
{{if IsMultilineCommitMessage .Message}}
52
- <button class="basic compact mini ui icon button commit -button"><i class="ellipsis horizontal icon"></i> </button>
52
+ <button class="ui button ellipsis -button" aria-expanded="false">... </button>
53
53
{{end}}
54
54
{{if IsMultilineCommitMessage .Message}}
55
55
<pre class="commit-body" style="display: none;">{{RenderCommitBody .Message ($.comment.Issue.PullRequest.BaseRepo.Link|Escape) $.comment.Issue.PullRequest.BaseRepo.ComposeMetas}}</pre>
Original file line number Diff line number Diff line change 28
28
{{ $commitLink:= printf "%s/commit/%s" .RepoLink (PathEscape .LatestCommit.ID.String) }}
29
29
<span class="grey commit-summary" title="{{.LatestCommit.Summary}}"><span class="message-wrapper">{{RenderCommitMessageLinkSubject .LatestCommit.Message $.RepoLink $commitLink $.Repository.ComposeMetas}}</span>
30
30
{{if IsMultilineCommitMessage .LatestCommit.Message}}
31
- <button class="basic compact mini ui icon button commit -button"><i class="ellipsis horizontal icon"></i> </button>
31
+ <button class="ui button ellipsis -button" aria-expanded="false">... </button>
32
32
<pre class="commit-body" style="display: none;">{{RenderCommitBody .LatestCommit.Message $.RepoLink $.Repository.ComposeMetas}}</pre>
33
33
{{end}}
34
34
</span>
Original file line number Diff line number Diff line change 1
1
const { csrfToken} = window . config ;
2
2
3
- export function initRepoCommitButton ( ) {
4
- $ ( '.commit -button' ) . on ( 'click' , function ( e ) {
3
+ export function initRepoEllipsisButton ( ) {
4
+ $ ( '.ellipsis -button' ) . on ( 'click' , function ( e ) {
5
5
e . preventDefault ( ) ;
6
+ const expanded = $ ( this ) . attr ( 'aria-expanded' ) === 'true' ;
6
7
$ ( this ) . parent ( ) . find ( '.commit-body' ) . toggle ( ) ;
8
+ $ ( this ) . attr ( 'aria-expanded' , String ( ! expanded ) ) ;
7
9
} ) ;
8
10
}
9
11
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ import {
36
36
initRepoPullRequestMergeInstruction ,
37
37
initRepoPullRequestReview ,
38
38
} from './features/repo-issue.js' ;
39
- import { initRepoCommitButton , initRepoCommitLastCommitLoader } from './features/repo-commit.js' ;
39
+ import { initRepoEllipsisButton , initRepoCommitLastCommitLoader } from './features/repo-commit.js' ;
40
40
import {
41
41
initFootLanguageMenu ,
42
42
initGlobalButtonClickOnEnter ,
@@ -132,7 +132,7 @@ $(document).ready(() => {
132
132
initRepoBranchButton ( ) ;
133
133
initRepoCodeView ( ) ;
134
134
initRepoCommentForm ( ) ;
135
- initRepoCommitButton ( ) ;
135
+ initRepoEllipsisButton ( ) ;
136
136
initRepoCommitLastCommitLoader ( ) ;
137
137
initRepoDiffConversationForm ( ) ;
138
138
initRepoDiffFileViewToggle ( ) ;
Original file line number Diff line number Diff line change @@ -2104,6 +2104,15 @@ table th[data-sortt-desc] {
2104
2104
display : flex !important ;
2105
2105
}
2106
2106
2107
+ .ellipsis-button {
2108
+ padding : 0 5px 8px !important ;
2109
+ display : inline-block !important ;
2110
+ user-select : none !important ;
2111
+ font-weight : 600 !important ;
2112
+ line-height : 6px !important ;
2113
+ vertical-align : middle !important ;
2114
+ }
2115
+
2107
2116
.truncated-item-name {
2108
2117
line-height : 2em ;
2109
2118
white-space : nowrap ;
You can’t perform that action at this time.
0 commit comments