From 4e6978d8603629794bb429d6aa80277970b703d7 Mon Sep 17 00:00:00 2001 From: Aden Linday Date: Thu, 22 Oct 2026 16:22:30 +1030 Subject: [PATCH] chore: fix merge conflicts --- src/seqta/ui/sidebar/sidebarStyles.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/seqta/ui/sidebar/sidebarStyles.ts b/src/seqta/ui/sidebar/sidebarStyles.ts index d654c014..56c6d0da 100644 --- a/src/seqta/ui/sidebar/sidebarStyles.ts +++ b/src/seqta/ui/sidebar/sidebarStyles.ts @@ -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");