mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
refactor: adjust window button handling and update URL bar width for better responsiveness
This commit is contained in:
@@ -202,7 +202,7 @@ var gZenVerticalTabsManager = {
|
||||
get actualWindowButtons() {
|
||||
// we have multiple ".titlebar-buttonbox-container" in the DOM, because of the titlebar
|
||||
if (!this.__actualWindowButtons) {
|
||||
this.__actualWindowButtons = (AppConstants.platform === 'macosx' || this.isWindowsStyledButtons) ?
|
||||
this.__actualWindowButtons = (!this.isWindowsStyledButtons) ?
|
||||
document.querySelector('.titlebar-buttonbox-container') : // TODO: test if it works 100% of the time
|
||||
document.querySelector('#nav-bar .titlebar-buttonbox-container');
|
||||
}
|
||||
@@ -392,7 +392,11 @@ var gZenVerticalTabsManager = {
|
||||
navBar.append(windowButtons);
|
||||
}
|
||||
} else { // not windows styled buttons
|
||||
navBar.appendChild(windowButtons);
|
||||
if (isRightSide) {
|
||||
navBar.prepend(windowButtons);
|
||||
} else {
|
||||
topButtons.prepend(windowButtons);
|
||||
}
|
||||
}
|
||||
} else if (!isSingleToolbar && isCompactMode) {
|
||||
navBar.appendChild(windowButtons);
|
||||
|
@@ -339,7 +339,8 @@ button.popup-notification-dropmarker {
|
||||
|
||||
#urlbar[open] {
|
||||
z-index: 1000;
|
||||
min-width: 600px;
|
||||
min-width: 45vw;
|
||||
max-width: 45vw;
|
||||
top: 0 !important;
|
||||
--urlbar-container-height: 55px !important;
|
||||
--urlbar-margin-inline: 10px !important;
|
||||
@@ -362,11 +363,6 @@ button.popup-notification-dropmarker {
|
||||
:root[zen-right-side='true'] & {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
@media not (-moz-bool-pref: 'zen.view.compact') {
|
||||
max-width: 45%;
|
||||
min-width: 45%;
|
||||
}
|
||||
position: absolute;
|
||||
|
||||
top: calc(var(--zen-toolbar-height) * 2) !important;
|
||||
|
Reference in New Issue
Block a user