Skip to content

Commit

Permalink
ui: scroll content to recently updated card
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed Feb 3, 2024
1 parent 705c8a6 commit 67ee0d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/ui/ui-window-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export default class UIWindowContent extends HTMLElement {
for (const element of this.cards) {
for (const card of element.cards) {
if (macaco.collection.diff.includes(card.fsurl)) {
this.scrollTop = element.offsetTop - element.offsetHeight
element.classList.add('recent')
}
}
Expand Down

0 comments on commit 67ee0d8

Please sign in to comment.