mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Hide the form-switch animation when the options page loads the initial values (#2807)
Hide the form-switch transition/animation when the options page initializes the current values.
This commit is contained in:
parent
8b71dbc30f
commit
58beb79927
3 changed files with 10 additions and 1 deletions
|
|
@ -82,6 +82,10 @@ pre {
|
|||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.no-transitions .form-check-input {
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
.table > caption {
|
||||
color: var(--kpxc-text-color);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<script src="options.js"></script>
|
||||
<script src="../common/translate.js" defer></script>
|
||||
</head>
|
||||
<body class="pt-3 pb-5">
|
||||
<body class="pt-3 pb-5 no-transitions">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<nav class="col-md-3 col-lg-2 sidebar">
|
||||
|
|
|
|||
|
|
@ -991,6 +991,11 @@ window.addEventListener('scroll', function() {
|
|||
options.initCustomLoginFields();
|
||||
options.initSitePreferences();
|
||||
options.initAbout();
|
||||
|
||||
// The form-switch transitions should complete in 150 ms
|
||||
setTimeout(() => {
|
||||
document.body.classList.remove('no-transitions');
|
||||
}, 200);
|
||||
} catch (err) {
|
||||
console.log('Error loading options page: ' + err);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue