mirror of
https://github.com/zen-browser/desktop.git
synced 2025-12-15 19:05:29 +00:00
Merge pull request #6449 from Slowlife01/margin
add negative margin to focus button when hidden
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user