diff --git a/keepassxc-browser/popups/popup.css b/keepassxc-browser/popups/popup.css index 5c83f35..f2245e8 100644 --- a/keepassxc-browser/popups/popup.css +++ b/keepassxc-browser/popups/popup.css @@ -4,10 +4,9 @@ body { display: flex; font-family: sans-serif; font-size: 14px !important; - overflow: hidden; padding-top: 8px; padding-bottom: 8px; - width: fit-content; + width: 460px; } code { diff --git a/keepassxc-browser/popups/popup.html b/keepassxc-browser/popups/popup.html index 08df2bf..45a01da 100644 --- a/keepassxc-browser/popups/popup.html +++ b/keepassxc-browser/popups/popup.html @@ -15,9 +15,6 @@ -
diff --git a/keepassxc-browser/popups/popup.js b/keepassxc-browser/popups/popup.js index e71e97d..3523cf3 100644 --- a/keepassxc-browser/popups/popup.js +++ b/keepassxc-browser/popups/popup.js @@ -75,7 +75,6 @@ const sendMessageToTab = async function(message) { }; (async () => { - resizePopup(); await initColorTheme(); $('#connect-button').addEventListener('click', async () => { diff --git a/keepassxc-browser/popups/popup_functions.js b/keepassxc-browser/popups/popup_functions.js index d5e8047..aa58ad6 100644 --- a/keepassxc-browser/popups/popup_functions.js +++ b/keepassxc-browser/popups/popup_functions.js @@ -4,9 +4,6 @@ const $ = function(elem) { return document.querySelector(elem); }; -const DEFAULT_POPUP_SIZE = '460px'; -const PINNED_POPUP_SIZE = '380px'; - function updateAvailableResponse(available) { if (available) { $('#update-available').show(); @@ -58,22 +55,6 @@ async function getLoginData() { return logins; } -// Sets default popup size for Chromium based browsers to prevent flash on popup open -function setDefaultPopupSize() { - if (!isFirefox()) { - document.body.style.width = DEFAULT_POPUP_SIZE; - } -} - -// Resizes the popup to the default size if the width is too small -function resizePopup() { - if (document.body.offsetWidth > 0 && document.body.offsetWidth < 100) { - document.body.style.width = isFirefox() ? PINNED_POPUP_SIZE : DEFAULT_POPUP_SIZE; - } else { - document.body.style.width = DEFAULT_POPUP_SIZE; - } -} - (async () => { if (document.readyState === 'complete' || (document.readyState !== 'loading' && !document.documentElement.doScroll)) { await initSettings(); diff --git a/keepassxc-browser/popups/popup_httpauth.html b/keepassxc-browser/popups/popup_httpauth.html index 055e045..f9ed378 100644 --- a/keepassxc-browser/popups/popup_httpauth.html +++ b/keepassxc-browser/popups/popup_httpauth.html @@ -15,9 +15,6 @@ -
diff --git a/keepassxc-browser/popups/popup_httpauth.js b/keepassxc-browser/popups/popup_httpauth.js index 0a37bfd..3369f85 100644 --- a/keepassxc-browser/popups/popup_httpauth.js +++ b/keepassxc-browser/popups/popup_httpauth.js @@ -1,7 +1,6 @@ 'use strict'; (async () => { - resizePopup(); await initColorTheme(); $('#lock-database-button').show(); diff --git a/keepassxc-browser/popups/popup_login.html b/keepassxc-browser/popups/popup_login.html index 341dcb0..4ef162c 100644 --- a/keepassxc-browser/popups/popup_login.html +++ b/keepassxc-browser/popups/popup_login.html @@ -15,9 +15,6 @@ -
diff --git a/keepassxc-browser/popups/popup_login.js b/keepassxc-browser/popups/popup_login.js index b46c460..1a7eea5 100644 --- a/keepassxc-browser/popups/popup_login.js +++ b/keepassxc-browser/popups/popup_login.js @@ -1,7 +1,6 @@ 'use strict'; (async () => { - resizePopup(); await initColorTheme(); $('#lock-database-button').show();