Skip to content

Commit 9dd58ce

Browse files
committed
Fixed critical bug and updated to 1.7.4b
1 parent 097b7fb commit 9dd58ce

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
lines changed

src/browser/base/content/ZenUIManager.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var gZenUIManager = {
22
_popupTrackingElements: [],
33
_hoverPausedForExpand: false,
4+
_hasLoadedDOM: false,
45

56
init() {
67
document.addEventListener('popupshowing', this.onPopupShowing.bind(this));
@@ -23,6 +24,10 @@ var gZenUIManager = {
2324
)
2425
).observe(document.getElementById('navigator-toolbox'));
2526

27+
window.addEventListener('DOMContentLoaded', () => {
28+
this._hasLoadedDOM = true;
29+
}, { once: true });
30+
2631
window.addEventListener('TabClose', this.updateTabsToolbar.bind(this));
2732
},
2833

@@ -213,7 +218,7 @@ var gZenVerticalTabsManager = {
213218
},
214219

215220
animateTab(aTab) {
216-
if (!gZenUIManager.motion) {
221+
if (!gZenUIManager.motion || !aTab || !this._hasLoadedDOM) {
217222
return;
218223
}
219224
// get next visible tab

src/browser/base/content/zen-styles/zen-tabs/vertical-tabs.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@
7272
}
7373

7474
#browser {
75-
--zen-toolbox-padding: max(.4rem, calc(var(--zen-element-separation) / 1.5));
75+
--zen-min-toolbox-padding: .4rem;
76+
@media (-moz-platform: macos) {
77+
--zen-min-toolbox-padding: .52rem;
78+
}
79+
--zen-toolbox-padding: max(var(--zen-min-toolbox-padding), calc(var(--zen-element-separation) / 1.5));
7680
}
7781

7882
:root[zen-single-toolbar='true'] {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/browser/themes/shared/browser-shared.css b/browser/themes/shared/browser-shared.css
2+
index b4854731c08b2f463751bb907cb44130ee6b6d2a..18d96cb457f5e57ed00b4eec6d2702287bfc72c7 100644
3+
--- a/browser/themes/shared/browser-shared.css
4+
+++ b/browser/themes/shared/browser-shared.css
5+
@@ -147,8 +147,6 @@ body {
6+
*/
7+
&.fullscreen-with-menubar {
8+
z-index: var(--browser-area-z-index-toolbox-while-animating);
9+
- box-shadow: var(--content-area-shadow);
10+
- border-bottom-color: var(--chrome-content-separator-color);
11+
}
12+
13+
/* Themes define a set of toolbox foreground and background colors which we

surfer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"brandShortName": "Zen",
2020
"brandFullName": "Zen Browser",
2121
"release": {
22-
"displayVersion": "1.7.3b",
22+
"displayVersion": "1.7.4b",
2323
"github": {
2424
"repo": "zen-browser/desktop"
2525
},
@@ -39,7 +39,7 @@
3939
"brandShortName": "Zen",
4040
"brandFullName": "Zen Twilight",
4141
"release": {
42-
"displayVersion": "1.7.2t",
42+
"displayVersion": "1.7.4t",
4343
"github": {
4444
"repo": "zen-browser/desktop"
4545
}

0 commit comments

Comments
 (0)