Merge pull request #6449 from Slowlife01/margin

add negative margin to focus button when hidden
This commit is contained in:
mr. m
2025-03-14 13:06:13 +01:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -83,7 +83,9 @@
height: 0; height: 0;
opacity: 0; opacity: 0;
padding: 0; padding: 0;
margin-right: -10%;
transform: translateX(-20px); transform: translateX(-20px);
transition: margin 0.15s ease-in-out;
} }
@container (min-width: 185px) { @container (min-width: 185px) {

View File

@@ -39,7 +39,7 @@ class ZenMediaController {
.then(() => { .then(() => {
this.mediaControlBar.setAttribute('hidden', 'true'); this.mediaControlBar.setAttribute('hidden', 'true');
}); });
} else { } else if (this.mediaControlBar.hasAttribute('hidden')) {
this.mediaControlBar.removeAttribute('hidden'); this.mediaControlBar.removeAttribute('hidden');
window.requestAnimationFrame(() => { window.requestAnimationFrame(() => {
this.mediaControlBar.style.height = this.mediaControlBar.style.height =