File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 59
59
{{$showFileViewToggle := or $isImage (and (not $file.IsIncomplete) $isCsv)}}
60
60
<div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}} mt-3" id="diff-{{.Index}}" data-old-filename="{{$file.OldName}}" data-new-filename="{{$file.Name}}" {{if $file.IsGenerated}}data-folded="true"{{end}}>
61
61
<h4 class="diff-file-header sticky-2nd-row ui top attached normal header df ac sb">
62
- <div class="fold-file df ac">
62
+ <div class="df ac">
63
63
<a role="button" class="fold-file muted mr-2">
64
64
{{if $file.IsGenerated}}
65
65
{{svg "octicon-chevron-right" 18}}
Original file line number Diff line number Diff line change @@ -131,9 +131,8 @@ export function initRepoCodeView() {
131
131
}
132
132
$ ( document ) . on ( 'click' , '.fold-file' , ( { currentTarget} ) => {
133
133
const box = currentTarget . closest ( '.file-content' ) ;
134
- const chevron = currentTarget . querySelector ( 'a.chevron' ) ;
135
134
const folded = box . dataset . folded !== 'true' ;
136
- chevron . innerHTML = svg ( `octicon-chevron-${ folded ? 'right' : 'down' } ` , 18 ) ;
135
+ currentTarget . innerHTML = svg ( `octicon-chevron-${ folded ? 'right' : 'down' } ` , 18 ) ;
137
136
box . dataset . folded = String ( folded ) ;
138
137
} ) ;
139
138
$ ( document ) . on ( 'click' , '.blob-excerpt' , async ( { currentTarget} ) => {
You can’t perform that action at this time.
0 commit comments