mirror of
https://github.com/zen-browser/desktop.git
synced 2026-09-18 10:44:46 +00:00
gh-15400: Fixed duplicate paste and go items (gh-15401)
This commit is contained in:
@@ -1587,8 +1587,6 @@ window.gZenVerticalTabsManager = {
|
||||
return;
|
||||
}
|
||||
gURLBar._initCopyCutController();
|
||||
gURLBar._initPasteAndGo();
|
||||
gURLBar._initStripOnShare();
|
||||
gURLBar.updatePlaceholder();
|
||||
},
|
||||
|
||||
|
||||
@@ -1062,25 +1062,15 @@
|
||||
if (draggedTab?.documentGlobal !== window || gReduceMotion) {
|
||||
return;
|
||||
}
|
||||
const elements = (this._dragImageTabs ?? [draggedTab])
|
||||
.map(elementToMove)
|
||||
.filter(element => element?.isConnected);
|
||||
if (!elements.length) {
|
||||
return;
|
||||
}
|
||||
for (const tab of this._dragImageTabs ?? [draggedTab]) {
|
||||
const element = elementToMove(tab);
|
||||
const rect = (
|
||||
element?.isConnected ? element : elements[0]
|
||||
).getBoundingClientRect();
|
||||
this.ZenDragAndDropService.addDropLandingRect(
|
||||
Math.round(window.mozInnerScreenX + rect.left),
|
||||
Math.round(window.mozInnerScreenY + rect.top),
|
||||
Math.round(rect.width),
|
||||
Math.round(rect.height)
|
||||
);
|
||||
}
|
||||
const elements = (this._dragImageTabs ?? [draggedTab]).map(elementToMove);
|
||||
for (const element of elements) {
|
||||
const { width, height } = element.getBoundingClientRect();
|
||||
this.ZenDragAndDropService.addDropLandingRect(
|
||||
Math.round(element.screenX),
|
||||
Math.round(element.screenY),
|
||||
Math.round(width),
|
||||
Math.round(height)
|
||||
);
|
||||
element.style.visibility = "hidden";
|
||||
}
|
||||
this._landingElements = elements;
|
||||
|
||||
@@ -329,8 +329,8 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
&[drag-image] {
|
||||
border-radius: calc(var(--border-radius-medium) / var(--zen-squircle-value));
|
||||
&[drag-image] .tab-background {
|
||||
border-radius: calc(var(--border-radius-medium) / var(--zen-squircle-value)) !important;
|
||||
}
|
||||
|
||||
/* stylelint-disable-next-line stylelint-plugin-mozilla/no-has-selector */
|
||||
|
||||
Reference in New Issue
Block a user