chore: Small quality fixes, b=no-bug, c=common, glance

This commit is contained in:
mr. m
2025-10-24 20:11:58 +02:00
parent 0dbfca8c29
commit ff71ee1081
10 changed files with 76 additions and 26 deletions

View File

@@ -276,14 +276,17 @@ var gZenUIManager = {
onUrlbarOpen() {
setTimeout(() => {
const hadValid = gURLBar.getAttribute('pageproxystate') === 'valid';
gURLBar.setPageProxyState('invalid', false);
gURLBar.setAttribute('had-proxystate', hadValid);
}, 0);
},
onUrlbarClose() {
if (!gURLBar.valueIsTyped && gURLBar._untrimmedValue !== gURLBar.value) {
gURLBar.handleRevert();
if (gURLBar.getAttribute('had-proxystate') == 'true') {
gURLBar.setPageProxyState('valid', false);
}
gURLBar.removeAttribute('had-proxystate');
},
onUrlbarSearchModeChanged(event) {

View File

@@ -339,6 +339,11 @@ body > #confetti {
justify-content: center;
align-items: center;
border-radius: 6px;
@media not (-moz-platform: macos) {
border-radius: 4px;
}
transition:
background-color 0.1s ease-in-out,
transform 0.12s ease-in-out;
@@ -498,6 +503,10 @@ body > #confetti {
padding: 8px;
padding-bottom: 0;
:root[zen-single-toolbar='true']:not([zen-right-side='true']) & {
flex-direction: row-reverse;
}
& toolbarbutton {
margin: 0;
appearance: none;
@@ -544,7 +553,7 @@ body > #confetti {
}
@media not (-moz-platform: macos) {
border-radius: 6px;
border-radius: 4px;
background-color: color-mix(in srgb, currentcolor 6%, transparent);
}