diff --git a/keepassxc-browser/content/ui.js b/keepassxc-browser/content/ui.js index 84dc9f5..23f48dd 100644 --- a/keepassxc-browser/content/ui.js +++ b/keepassxc-browser/content/ui.js @@ -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; };