Skip to content

Commit c5b302e

Browse files
LariWahansu
authored andcommitted
fix toggle summary button rendering artifact
1 parent 6500a9d commit c5b302e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

web/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2782,13 +2782,13 @@ class GitGraphView {
27822782
}
27832783

27842784
private hideCdvSummary(hide: boolean) {
2785-
let btn = document.getElementById('cdvSummaryToggleBtn');
2785+
let btnIcon = document.getElementById('cdvSummaryToggleBtn')?.getElementsByTagName('svg')?.[0] ?? null;
27862786
let cdvSummary = document.getElementById('cdvSummary');
27872787
if (hide && !this.isCdvDocked()) {
2788-
if (btn) btn.classList.add('flipHorizontal');
2788+
if (btnIcon) btnIcon.style.transform = 'rotate(-90deg)';
27892789
cdvSummary!.classList.add('hidden');
27902790
} else {
2791-
if (btn) btn!.classList.remove('flipHorizontal');
2791+
if (btnIcon) btnIcon.style.transform = 'rotate(90deg)';
27922792
cdvSummary!.classList.remove('hidden');
27932793
}
27942794
let elem = document.getElementById('cdv');

web/styles/main.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,15 +483,14 @@ table { border-collapse: collapse; }
483483
padding:2px;
484484
width:16px;
485485
height:16px;
486-
background-color: color-mix(in srgb, var(--vscode-editor-background) 90%, rgba(128, 128, 128,1));}
486+
background-color: color-mix(in srgb, var(--vscode-editor-background) 90%, rgba(128, 128, 128,1));
487+
border-left: 1px solid var(--vscode-editor-background);
488+
}
487489

488490
#cdvSummaryToggleBtn svg{
489491
fill:var(--vscode-editor-foreground);
490492
fill-opacity:0.6;
491493
}
492-
.flipHorizontal{
493-
transform: rotate(180deg);
494-
}
495494
.hidden{
496495
display: none;
497496
}

0 commit comments

Comments
 (0)