fix popover darkmode position issue

This commit is contained in:
Jordan Blasenhauer 2024-05-06 15:57:55 +02:00
parent b79bfca2e0
commit 0017e725a4
5 changed files with 7 additions and 3474 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

View file

@ -1149,11 +1149,7 @@ class Settings {
setDisabledByMethod(inp, method) {
// Check if pro
const proDisabled = inp
.closest("[data-plugin-item]")
.hasAttribute("data-pro-disabled")
? true
: false;
const proDisabled = inp.closest('[data-plugin-item]').hasAttribute('data-pro-disabled') ? true : false;
if (proDisabled) return inp.setAttribute("disabled", "");
if (method === "ui" || method === "default") {
inp.removeAttribute("disabled");
@ -1276,16 +1272,12 @@ class Settings {
inp.setAttribute("data-method", method);
}
const proDisabled = inp
.closest("[data-plugin-item]")
.hasAttribute("data-pro-disabled")
? true
: false;
const proDisabled = inp.closest('[data-plugin-item]').hasAttribute('data-pro-disabled') ? true : false;
if (proDisabled) return inp.setAttribute("disabled", "");
if (this.forceEnabled) return inp.removeAttribute("disabled");
if (this.forceEnabled) return inp.removeAttribute("disabled");
if (method === "ui" || method === "default") {
inp.removeAttribute("disabled");
} else {
@ -1293,6 +1285,7 @@ class Settings {
}
if (global) inp.removeAttribute("disabled");
});
} catch (err) {}
}

View file

@ -57,7 +57,7 @@
<form data-global-config-form
id="form-edit-global-config"
method="post"
class="flex flex-col justify-between overflow-hidden overflow-y-auto dark:brightness-110 col-span-12 break-words bg-white shadow-xl p-4 dark:bg-slate-850 dark:shadow-dark-xl rounded-2xl bg-clip-border">
class="flex flex-col justify-between overflow-hidden overflow-y-auto col-span-12 break-words bg-white shadow-xl p-4 dark:bg-slate-850 dark:shadow-dark-xl rounded-2xl bg-clip-border">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<!-- plugin item -->
{% include "settings_plugins.html" %}

View file

@ -10,7 +10,6 @@
<title>BunkerWeb UI</title>
<link rel="icon" type="image/x-icon" href="images/favicon.ico" />
<!-- tailwind style -->
<link rel="stylesheet" href="css/plugins.css" />
<link rel="stylesheet" href="css/dashboard.css" />
<script type="module" src="js/global.js" nonce="{{ script_nonce }}"></script>
<script src="js/plugins/utils.js" nonce="{{ script_nonce }}"></script>