diff --git a/keepassxc-browser/content/ui.js b/keepassxc-browser/content/ui.js index 84dc9f5..9ceaca0 100644 --- a/keepassxc-browser/content/ui.js +++ b/keepassxc-browser/content/ui.js @@ -126,7 +126,8 @@ 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); + console.log(field.offsetHeight, size, offset); return (offset < 0) ? 0 : offset; };