mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-04 08:56:34 +00:00
fix: Fixed opening a new link in split view while having glance, b=(no-bug), c=split-view
This commit is contained in:
@@ -923,7 +923,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
||||
window.gContextMenu.mediaURL ||
|
||||
window.gContextMenu.contentData.docLocation ||
|
||||
window.gContextMenu.target.ownerDocument.location.href;
|
||||
const currentTab = window.gBrowser.selectedTab;
|
||||
const currentTab = gZenGlanceManager.getTabOrGlanceParent(window.gBrowser.selectedTab);
|
||||
const newTab = this.openAndSwitchToTab(url);
|
||||
this.splitTabs([currentTab, newTab]);
|
||||
}
|
||||
|
@@ -56,6 +56,7 @@
|
||||
&.zen-glance-overlay {
|
||||
flex: 1;
|
||||
margin-top: calc(var(--zen-element-separation) / 2);
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user