зеркало из https://github.com/mozilla/gecko-dev.git
Bug 450915 - Increase the drag space of the TabsToolbar by 15px on the bottom to improve the tab reordering experience. r=Gijs
MozReview-Commit-ID: I022PxskDF0 --HG-- extra : rebase_source : d7585bd2b29903f6cc530ca57f2ea28291eb0ac4
This commit is contained in:
Родитель
77571cf92b
Коммит
cf0fec131d
|
@ -179,6 +179,22 @@ tabbrowser {
|
|||
transition: transform 200ms var(--animation-easing-function);
|
||||
}
|
||||
|
||||
#TabsToolbar[movingtab] > .tabbrowser-tabs {
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
#TabsToolbar[movingtab] + #nav-bar {
|
||||
margin-top: -15px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Allow dropping a tab on buttons with associated drop actions. */
|
||||
#TabsToolbar[movingtab] + #nav-bar > #nav-bar-customization-target > #home-button,
|
||||
#TabsToolbar[movingtab] + #nav-bar > #nav-bar-customization-target > #downloads-button,
|
||||
#TabsToolbar[movingtab] + #nav-bar > #nav-bar-customization-target > #bookmarks-menu-button {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.new-tab-popup,
|
||||
#alltabs-popup {
|
||||
-moz-binding: url("chrome://browser/content/tabbrowser.xml#tabbrowser-alltabs-popup");
|
||||
|
|
|
@ -6695,6 +6695,7 @@
|
|||
|
||||
if (this.getAttribute("movingtab") != "true") {
|
||||
this.setAttribute("movingtab", "true");
|
||||
this.parentNode.setAttribute("movingtab", "true");
|
||||
this.selectedItem = draggedTab;
|
||||
}
|
||||
|
||||
|
@ -6798,6 +6799,7 @@
|
|||
tab.style.transform = "";
|
||||
|
||||
this.removeAttribute("movingtab");
|
||||
this.parentNode.removeAttribute("movingtab");
|
||||
|
||||
this._handleTabSelect();
|
||||
]]></body>
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
}
|
||||
|
||||
#tabbrowser-tabs,
|
||||
#tabbrowser-tabs > .tabbrowser-arrowscrollbox,
|
||||
.tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-tab[pinned] {
|
||||
min-height: var(--tab-min-height);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче