Skip to content

Commit b5efe62

Browse files
committed
fix: Make sure drop indicator is under the last item when newtab button is below, b=no-bug, c=common
1 parent e34ed3e commit b5efe62

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/zen/common/modules/ZenUIManager.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -891,8 +891,8 @@ window.gZenVerticalTabsManager = {
891891
marginBottom: isLastItem() ? ["0px", "0px"] : [transform, "0px"],
892892
},
893893
{
894-
duration: 0.11,
895-
easing: "ease-out",
894+
duration: 0.075,
895+
easing: "easeOut",
896896
}
897897
)
898898
.then(() => {})
@@ -913,8 +913,8 @@ window.gZenVerticalTabsManager = {
913913
filter: ["blur(1px)", "blur(0px)"],
914914
},
915915
{
916-
duration: 0.11,
917-
easing: "ease-out",
916+
duration: 0.075,
917+
easing: "easeOut",
918918
}
919919
)
920920
.then(() => {})
@@ -949,7 +949,7 @@ window.gZenVerticalTabsManager = {
949949
},
950950
{
951951
duration: 0.075,
952-
easing: "ease-out",
952+
easing: "easeOut",
953953
}
954954
);
955955
},

src/zen/drag-and-drop/ZenDragAndDrop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@
931931
if (event.target.classList.contains("zen-workspace-empty-space") || hoveringPeriphery) {
932932
let lastTab = gBrowser.tabs.at(-1);
933933
dropElement =
934-
(hoveringPeriphery
934+
(hoveringPeriphery && Services.prefs.getBoolPref("zen.view.show-newtab-button-top")
935935
? this._tabbrowserTabs.ariaFocusableItems.at(
936936
gBrowser._numVisiblePinTabsWithoutCollapsed
937937
)

0 commit comments

Comments
 (0)