mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-12-06 19:56:45 +10:30
chore: fix merge conflicts
This commit is contained in:
1 parent
db69e902ca
commit
4e6978d860
1 file changed
+4
-1
@@ -159,6 +159,7 @@ export function applySidebarPosition() {
|
||||
|
||||
/** Safe to call with no menu (still sets width/blur/radius on `:root`). */
|
||||
let lastSidebarLookKey = "";
|
||||
let lastSidebarLookMenu: HTMLElement | null | undefined;
|
||||
|
||||
export function applySidebarLook(
|
||||
menu: HTMLElement | null | undefined = document.getElementById("menu"),
|
||||
@@ -181,8 +182,9 @@ export function applySidebarLook(
|
||||
if (!menu) return;
|
||||
|
||||
const lookKey = `${density}|${indicator}|${width}|${radius}|${blur}|${normalizeSidebarPosition(settingsState.sidebarPosition)}`;
|
||||
if (lookKey === lastSidebarLookKey) return;
|
||||
if (lookKey === lastSidebarLookKey && menu === lastSidebarLookMenu) return;
|
||||
lastSidebarLookKey = lookKey;
|
||||
lastSidebarLookMenu = menu;
|
||||
|
||||
setExclusiveClass(menu, DENSITY_CLASS_PREFIX, density, DEFAULT_SIDEBAR_DENSITY);
|
||||
setExclusiveClass(
|
||||
@@ -195,6 +197,7 @@ export function applySidebarLook(
|
||||
|
||||
export function clearSidebarAppearance(menu: HTMLElement | null | undefined) {
|
||||
lastSidebarLookKey = "";
|
||||
lastSidebarLookMenu = undefined;
|
||||
const root = document.documentElement;
|
||||
root.style.removeProperty("--bsplus-sidebar-width");
|
||||
root.style.removeProperty("--bsplus-sidebar-radius");
|
||||
|
||||
Reference in new issue
Block a user