Skip to content

Commit

Permalink
Fix vimeo iframe size
Browse files Browse the repository at this point in the history
  • Loading branch information
yoriiis committed May 2, 2023
1 parent 0cf960f commit 94b2f5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/core/player.ts
Expand Up @@ -189,6 +189,7 @@ export default class Player {
*/
onReady() {
this.options.muted && this.mute()
this.media.classList.add('v-media')

// The iframe needs to be ignored by the focus
this.media.setAttribute('tabindex', '-1')
Expand Down
5 changes: 2 additions & 3 deletions src/core/vlite.css
Expand Up @@ -91,9 +91,8 @@
}

.v-container,
.v-container > iframe,
.v-container > audio,
.v-container > video {
.v-media,
.v-media > iframe {
width: 100%;
height: 100%;
}
Expand Down

0 comments on commit 94b2f5a

Please sign in to comment.