mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Remove special handling for overflow/hamburger menu
This commit is contained in:
parent
2ea6f08235
commit
0d3f9f9cc4
8 changed files with 1 additions and 33 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -15,9 +15,6 @@
|
|||
<script defer src="../common/translate.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
setDefaultPopupSize();
|
||||
</script>
|
||||
<div class="container">
|
||||
<div id="settings" class="settings">
|
||||
<div class="action-buttons-area">
|
||||
|
|
|
|||
|
|
@ -75,7 +75,6 @@ const sendMessageToTab = async function(message) {
|
|||
};
|
||||
|
||||
(async () => {
|
||||
resizePopup();
|
||||
await initColorTheme();
|
||||
|
||||
$('#connect-button').addEventListener('click', async () => {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -15,9 +15,6 @@
|
|||
<script defer src="../common/translate.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
setDefaultPopupSize();
|
||||
</script>
|
||||
<div class="container">
|
||||
<div id="settings" class="settings">
|
||||
<div class="function-buttons-area">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
(async () => {
|
||||
resizePopup();
|
||||
await initColorTheme();
|
||||
|
||||
$('#lock-database-button').show();
|
||||
|
|
|
|||
|
|
@ -15,9 +15,6 @@
|
|||
<script defer src="../common/translate.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
setDefaultPopupSize();
|
||||
</script>
|
||||
<div class="container">
|
||||
<div id="settings" class="settings">
|
||||
<div class="function-buttons-area">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
(async () => {
|
||||
resizePopup();
|
||||
await initColorTheme();
|
||||
|
||||
$('#lock-database-button').show();
|
||||
|
|
|
|||
Loading…
Reference in a new issue