mirror of
https://github.com/zen-browser/desktop.git
synced 2025-12-17 03:45:33 +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;
|
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) {
|
||||||
|
|||||||
@@ -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 =
|
||||||
|
|||||||
Reference in New Issue
Block a user