Skip to content

Commit 77f7005

Browse files
committed
fix: hide gesture-layer when in audio mode
The gestures layer, depending on configuration, may add an extra 5 pixels above or below the control bar, which is unwanted. Instead, when we're playing back audio, we should hide the gestures display, which involves making it a block element so that we can set the height of it to zero.
1 parent 335b875 commit 77f7005

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/js/media-container.js

+9
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ template.innerHTML = `
4343
background: none;
4444
}
4545
46+
/*
47+
* when in audio mode, hide the gesture-layer which causes media-controller to be taller than the control bar
48+
*
49+
*/
50+
:host([audio]) [part~=layer][part~=gesture-layer] {
51+
height: 0;
52+
display: block;
53+
}
54+
4655
/*
4756
* if gestures are disabled, don't accept pointer-events
4857
*/

0 commit comments

Comments
 (0)