mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-04 08:56:34 +00:00
Prevent using single toolbar in popup windows and fixed one-offs UI
This commit is contained in:
@@ -122,6 +122,13 @@ var gZenVerticalTabsManager = {
|
||||
|| Services.prefs.getBoolPref('zen.view.experimental-force-window-controls-left'));
|
||||
});
|
||||
|
||||
ChromeUtils.defineLazyGetter(this, 'hidesTabsToolbar', () => {
|
||||
return (
|
||||
document.documentElement.getAttribute('chromehidden').includes('toolbar') ||
|
||||
document.documentElement.getAttribute('chromehidden').includes('menubar')
|
||||
);
|
||||
});
|
||||
|
||||
var updateEvent = this._updateEvent.bind(this);
|
||||
|
||||
this.initializePreferences(updateEvent);
|
||||
@@ -264,7 +271,7 @@ var gZenVerticalTabsManager = {
|
||||
const isVerticalTabs = this._prefsVerticalTabs || forceMultipleToolbar;
|
||||
const isSidebarExpanded = this._prefsSidebarExpanded || !isVerticalTabs;
|
||||
const isRightSide = this._prefsRightSide && isVerticalTabs;
|
||||
const isSingleToolbar = ((this._prefsUseSingleToolbar && (isVerticalTabs && isSidebarExpanded) )|| !isVerticalTabs) && !forceMultipleToolbar;
|
||||
const isSingleToolbar = ((this._prefsUseSingleToolbar && (isVerticalTabs && isSidebarExpanded) )|| !isVerticalTabs) && !forceMultipleToolbar && !this.hidesTabsToolbar;
|
||||
const titlebar = document.getElementById('titlebar');
|
||||
|
||||
gBrowser.tabContainer.setAttribute('orient', isVerticalTabs ? 'vertical' : 'horizontal');
|
||||
|
@@ -4,6 +4,10 @@ height: var(--zen-toolbar-height);
|
||||
& {
|
||||
transition: height 0.2s ease-out, opacity 0.2s ease-out;
|
||||
transition-delay: 0.05s;
|
||||
|
||||
:root[inDOMFullscreen='true'] & {
|
||||
max-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:not([zen-has-hover='true']):not([has-popup-menu]):not(:focus-within) {
|
||||
|
@@ -328,6 +328,16 @@ button.popup-notification-dropmarker {
|
||||
padding-right: var(--zen-element-separation) !important;
|
||||
}*/
|
||||
|
||||
#urlbar {
|
||||
& .search-panel-one-offs-header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
& .search-panel-one-offs-container .searchbar-engine-one-off-item {
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
#urlbar[open] {
|
||||
z-index: 1000;
|
||||
min-width: 600px;
|
||||
|
Reference in New Issue
Block a user