Skip to content

Commit

Permalink
Merge pull request #156 from rtritto/use-latest-z-index
Browse files Browse the repository at this point in the history
Remove useless v-fullscreenButtonDisplay class
  • Loading branch information
yoriiis authored Feb 22, 2025
2 parents 233cfcf + 6693471 commit d5cf59d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/core/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ export default class Player {
// @ts-ignore: Object is possibly 'null'.
this.elements.container[requestFn]()
this.isFullScreen = true
this.elements.outerContainer.classList.add('v-fullscreenButtonDisplay')
this.elements.outerContainer.classList.add('v-fullscreen')

if (this.elements.fullscreen) {
this.elements.fullscreen.classList.add('v-controlPressed')
Expand All @@ -513,7 +513,7 @@ export default class Player {
!escKey && document[cancelFn]()
this.isFullScreen = false

this.elements.outerContainer.classList.remove('v-fullscreenButtonDisplay')
this.elements.outerContainer.classList.remove('v-fullscreen')

if (this.elements.fullscreen) {
this.elements.fullscreen.classList.remove('v-controlPressed')
Expand Down
8 changes: 0 additions & 8 deletions src/core/vlite.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@
display: none !important;
}

&.v-fullscreenButtonDisplay {
.v-controlBar,
.v-bigPlay {
position: fixed;
z-index: 2147483647;
}
}

&.v-paused {
.v-controlBar.v-hidden {
opacity: 1;
Expand Down

0 comments on commit d5cf59d

Please sign in to comment.