fix: Fixed opening a new link in split view while having glance, b=(no-bug), c=split-view

This commit is contained in:
Mr. M
2025-05-18 12:42:57 +02:00
parent 44ffc842d3
commit 46941fe25a
2 changed files with 2 additions and 1 deletions

View File

@@ -923,7 +923,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
window.gContextMenu.mediaURL || window.gContextMenu.mediaURL ||
window.gContextMenu.contentData.docLocation || window.gContextMenu.contentData.docLocation ||
window.gContextMenu.target.ownerDocument.location.href; window.gContextMenu.target.ownerDocument.location.href;
const currentTab = window.gBrowser.selectedTab; const currentTab = gZenGlanceManager.getTabOrGlanceParent(window.gBrowser.selectedTab);
const newTab = this.openAndSwitchToTab(url); const newTab = this.openAndSwitchToTab(url);
this.splitTabs([currentTab, newTab]); this.splitTabs([currentTab, newTab]);
} }

View File

@@ -56,6 +56,7 @@
&.zen-glance-overlay { &.zen-glance-overlay {
flex: 1; flex: 1;
margin-top: calc(var(--zen-element-separation) / 2); margin-top: calc(var(--zen-element-separation) / 2);
z-index: 1;
} }
} }