We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fileContentToggle
1 parent f046d18 commit 7668889Copy full SHA for 7668889
2 files changed
src/ui/css/diff2html.css
@@ -74,7 +74,7 @@
74
75
.d2h-file-collapse {
76
justify-content: flex-end;
77
- display: flex;
+ display: none;
78
cursor: pointer;
79
font-size: 12px;
80
align-items: center;
src/ui/js/diff2html-ui-base.ts
@@ -112,7 +112,9 @@ export class Diff2HtmlUI {
112
}
113
114
fileContentToggle(): void {
115
- this.targetElement.querySelectorAll('.d2h-file-collapse').forEach(fileContentToggleBtn => {
+ this.targetElement.querySelectorAll<HTMLElement>('.d2h-file-collapse').forEach(fileContentToggleBtn => {
116
+ fileContentToggleBtn.style.display = 'flex';
117
+
118
const toggleFileContents: (selector: string) => void = selector => {
119
const fileContents: HTMLElement | null | undefined = fileContentToggleBtn
120
.closest('.d2h-file-wrapper')
0 commit comments