File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 74
74
75
75
.d2h-file-collapse {
76
76
justify-content : flex-end;
77
- display : flex ;
77
+ display : none ;
78
78
cursor : pointer;
79
79
font-size : 12px ;
80
80
align-items : center;
Original file line number Diff line number Diff line change @@ -112,7 +112,9 @@ export class Diff2HtmlUI {
112
112
}
113
113
114
114
fileContentToggle ( ) : void {
115
- this . targetElement . querySelectorAll ( '.d2h-file-collapse' ) . forEach ( fileContentToggleBtn => {
115
+ this . targetElement . querySelectorAll < HTMLElement > ( '.d2h-file-collapse' ) . forEach ( fileContentToggleBtn => {
116
+ fileContentToggleBtn . style . display = 'flex' ;
117
+
116
118
const toggleFileContents : ( selector : string ) => void = selector => {
117
119
const fileContents : HTMLElement | null | undefined = fileContentToggleBtn
118
120
. closest ( '.d2h-file-wrapper' )
You can’t perform that action at this time.
0 commit comments