Skip to content

Commit

Permalink
Merge branch 'rewrite-cump-to-current-commit' into w-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ssoft-wankun committed Feb 20, 2024
2 parents 3fcc06f + 8539eb8 commit 73d4543
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions web/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4085,6 +4085,17 @@ function scrollToDot() {

const commitParent = headDots[0].closest('.commit') as HTMLElement;
if (commitParent) {

let view = document.getElementById('view');
if (view === null) {
return;
}

// 获取commitHeadDot的bodor的颜色
let headercolor = window.getComputedStyle(headDots[0] as HTMLElement).borderColor;
document.body.style.setProperty('--git-graph-flashPrimary', modifyColourOpacity(headercolor, 0.7));
document.body.style.setProperty('--git-graph-flashSecondary', modifyColourOpacity(headercolor, 0.5));

// 添加类以开始动画
commitParent.classList.add('flash');

Expand Down

0 comments on commit 73d4543

Please sign in to comment.