Skip to content

Commit

Permalink
chore: reduce padding for search result scrolling into view
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Sep 11, 2024
1 parent 605c889 commit d072b43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/features/search-pad/SearchPad.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,10 @@ SearchPad.prototype._preselect = function(node) {
domClasses(node).add(SearchPad.RESULT_SELECTED_CLASS);

this._canvas.zoom(1);
this._canvas.scrollToElement(element, { top: 400 });

this._canvas.scrollToElement(element, {
top: 300
});

this._selection.select(element);

Expand Down

0 comments on commit d072b43

Please sign in to comment.