Skip to content

Commit 460f255

Browse files
committed
fix: Fixed native caption buttons not updating position when hiding, b=closes #10973, c=common, compact-mode
1 parent 4320941 commit 460f255

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

src/zen/common/styles/zen-browser-ui.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@
247247
@media (-moz-platform: macos) {
248248
:root[zen-window-buttons-reversed='true'][zen-right-side='true'] .titlebar-buttonbox-container {
249249
margin-inline-start: max(calc(var(--zen-element-separation) - 3px), 4px);
250+
margin-block: auto;
250251
}
251252
}
252253

src/zen/common/styles/zen-single-components.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,11 @@ body > #confetti {
302302
gap: 8px;
303303
overflow: visible;
304304

305+
unified-extensions-item-messagebar-wrapper,
306+
.unified-extensions-item-contents {
307+
display: none !important;
308+
}
309+
305310
&[overflowing='true'] {
306311
overflow-x: auto;
307312
max-height: 420px;

src/zen/common/styles/zen-theme.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@
195195

196196
/* Transitions */
197197
--zen-tabbox-element-indent-transition: margin-inline-start 0.1s ease-in-out;
198-
--zen-hidden-toolbar-transition: 0.15s ease-in-out;
198+
--zen-hidden-toolbar-transition-duration: 0.15s;
199+
--zen-hidden-toolbar-transition: var(--zen-hidden-toolbar-transition-duration) ease-in-out;
199200

200201
/* XUL */
201202
--zen-main-browser-background: light-dark(rgb(235, 235, 235), #1b1b1b);

src/zen/compact-mode/windows-captions-fix-active.inc.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
*/
66

77
& .titlebar-buttonbox-container {
8-
visibility: visible;
8+
max-height: 100%;
99
transition: none;
1010
}

src/zen/compact-mode/windows-captions-fix-default.inc.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
*/
66

77
& .titlebar-buttonbox-container {
8-
display: collapse;
8+
max-height: 0px;
99
/* We need to hide them since on Windows the native
1010
* panels when hovering over them can interfere with the
1111
* web content */
12-
transition: visibility var(--zen-hidden-toolbar-transition);
12+
transition: max-height 0s;
13+
transition-delay: calc(var(--zen-hidden-toolbar-transition-duration) + 0.2s);
1314
}

0 commit comments

Comments
 (0)