fix: Fixed missing space between update and media player, b=closes #11592, c=scripts, common, tabs, workspaces

This commit is contained in:
mr. m
2025-12-12 19:54:15 +01:00
parent 6a218d109a
commit f1c6c1b321
6 changed files with 34 additions and 26 deletions

View File

@@ -5,6 +5,7 @@
import json import json
from typing import Any from typing import Any
class JSONWithCommentsDecoder(json.JSONDecoder): class JSONWithCommentsDecoder(json.JSONDecoder):
def __init__(self, **kw): def __init__(self, **kw):
super().__init__(**kw) super().__init__(**kw)

View File

@@ -261,6 +261,7 @@ body > #confetti {
} }
#TabsToolbar { #TabsToolbar {
gap: var(--zen-toolbox-padding);
-moz-window-dragging: unset; -moz-window-dragging: unset;
} }

View File

@@ -439,7 +439,6 @@
background: transparent; background: transparent;
gap: 5px; gap: 5px;
align-items: center; align-items: center;
padding-top: var(--zen-element-separation);
& > toolbarbutton:not(#zen-workspaces-button) { & > toolbarbutton:not(#zen-workspaces-button) {
padding: 0 !important; padding: 0 !important;

View File

@@ -3140,7 +3140,7 @@ class nsZenWorkspaces extends nsZenMultiWindowFeature {
return; return;
} }
const maxButtonSize = 32; // IMPORTANT: This should match the CSS size of the icons const maxButtonSize = 32; // IMPORTANT: This should match the CSS size of the icons
const minButtonSize = 15; const minButtonSize = maxButtonSize / 2; // Minimum size for icons when space is limited
const separation = 3; // Space between icons const separation = 3; // Space between icons
// Calculate the total width needed for all icons // Calculate the total width needed for all icons
@@ -3160,9 +3160,7 @@ class nsZenWorkspaces extends nsZenMultiWindowFeature {
// Set the width of each icon to the maximum size they can fit on // Set the width of each icon to the maximum size they can fit on
const widthPerButton = Math.max( const widthPerButton = Math.max(
Math.floor( (parent.clientWidth - separation * (parent.children.length - 1)) / parent.children.length,
(parent.clientWidth - separation * (parent.children.length - 1)) / parent.children.length
),
minButtonSize minButtonSize
); );
for (const icon of parent.children) { for (const icon of parent.children) {

View File

@@ -4,31 +4,40 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
&::after {
content: '';
position: absolute;
width: 4px;
border-radius: 99px;
height: 4px;
background: color-mix(
in srgb,
var(--zen-primary-color) 10%,
light-dark(rgba(0, 0, 0, 0.4), rgba(255, 255, 255, 0.4)) 90%
);
left: 50%;
top: 50%;
filter: saturate(140%) brightness(110%) !important;
transform: translate(-50%, -50%);
transition: opacity 150ms ease-in-out;
opacity: 0;
}
& .zen-workspace-icon {
transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
z-index: 2;
transform-origin: center;
}
&:not(:hover) { &:not(:hover) {
min-width: 10px; min-width: 10px;
&::after { &::after {
content: ''; opacity: 1;
position: absolute;
width: 4px;
border-radius: 99px;
height: 4px;
background: color-mix(
in srgb,
var(--zen-primary-color) 10%,
light-dark(rgba(0, 0, 0, 0.4), rgba(255, 255, 255, 0.4)) 90%
);
left: 50%;
top: 50%;
filter: saturate(140%) brightness(110%) !important;
transform: translate(-50%, -50%);
} }
& .zen-workspace-icon { & .zen-workspace-icon {
display: none; opacity: 0;
transform: scale(0);
} }
} }
&:hover {
width: 20px !important;
}

View File

@@ -94,7 +94,7 @@
&[icons-overflow] { &[icons-overflow] {
gap: 0 !important; gap: 0 !important;
justify-content: space-between; justify-content: center;
& toolbarbutton { & toolbarbutton {
margin: 0; margin: 0;
@@ -108,7 +108,7 @@
} }
&:has(toolbarbutton:hover) toolbarbutton[active='true']:not([dragged='true']) { &:has(toolbarbutton:hover) toolbarbutton[active='true']:not([dragged='true']) {
%include overflow-icons.inc.css %include overflow-icons.inc.css
} }
} }
} }