Skip to content

Commit

Permalink
fix(player): audio view type should display contents
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Oct 20, 2023
1 parent 175f10f commit 1c7c8ca
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/vidstack/player/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

:where([data-media-player]) {
[data-media-player] {
width: 100%;
display: inline-flex;
align-items: center;
Expand All @@ -19,7 +19,7 @@
outline: none;
}

:where([data-media-player][data-view-type='video']:not([data-controls])) {
[data-media-player][data-view-type='video']:not([data-controls]) {
pointer-events: auto;
cursor: none;
}
Expand All @@ -38,19 +38,16 @@
display: flex;
position: relative;
box-sizing: border-box;
}

:where([data-media-provider]) {
align-items: center;
width: 100%;
}

:where([data-media-player]:not([data-view-type='audio']) [data-media-provider]),
:where([data-media-player][data-fullscreen] [data-media-provider]) {
[data-media-player]:not([data-view-type='audio']) [data-media-provider],
[data-media-player][data-fullscreen] [data-media-provider] {
height: 100%;
}

:where([data-media-player][data-view-type='audio'] [data-media-provider]) {
[data-media-player][data-view-type='audio'] [data-media-provider] {
display: contents;
background-color: unset;
}
Expand Down

0 comments on commit 1c7c8ca

Please sign in to comment.