Skip to content

Commit

Permalink
Merge pull request keepassxreboot#2120 from tinyoverflow/fix-icon-pla…
Browse files Browse the repository at this point in the history
…cement

Fix calculation of icon offset
  • Loading branch information
varjolintu authored Feb 25, 2024
2 parents fc1c3a4 + f717229 commit 91cc1d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keepassxc-browser/content/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ kpxcUI.updateIconPosition = function(iconClass) {
};

kpxcUI.calculateIconOffset = function(field, size) {
const offset = Math.floor((field.offsetHeight - size) / 3);
const offset = Math.floor((field.offsetHeight / 2) - (size / 2) - 1);
return (offset < 0) ? 0 : offset;
};

Expand Down

0 comments on commit 91cc1d1

Please sign in to comment.