chore: fix merge conflicts

This commit is contained in:
AdenMGB committed 2026-10-22 16:22:30 +10:30
1 parent db69e902ca
commit 4e6978d860
1 file changed
+4 -1
+4 -1
View File
@@ -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");