fix: Fixed always recalculating split view leafs on location changes, b=no-bug, c=split-view

This commit is contained in:
mr. m
2025-12-20 13:05:44 +01:00
parent cf4c754e57
commit 53d223b9c5
2 changed files with 4 additions and 1 deletions

View File

@@ -1174,6 +1174,9 @@ class nsZenViewSplitter extends nsZenDOMOperatedFeature {
const oldView = this.currentView;
const newView = this._data.findIndex((group) => group.tabs.includes(tab));
if (newView === oldView && oldView < 0) {
return;
}
if (newView < 0 && oldView >= 0) {
this.deactivateCurrentSplitView();
return;

View File

@@ -67,7 +67,7 @@
#tabbrowser-tabpanels[zen-split-view='true'] .browserSidebarContainer.deck-selected {
&:not(.zen-glance-overlay) {
outline: 2px solid var(--zen-primary-color) !important;
outline: 2px solid light-dark(var(--zen-primary-color), var(--button-background-color-primary)) !important;
}
&.zen-glance-overlay {