fix: Fixed always recalculating split view leafs on location changes, b=no-bug, c=split-view
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user