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;
opacity: 0;
padding: 0;
margin-right: -10%;
transform: translateX(-20px);
transition: margin 0.15s ease-in-out;
}
@container (min-width: 185px) {

View File

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