Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
fix: improve sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes committed Apr 2, 2023
1 parent cda8c32 commit 4b7ef4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
width: 100%;
}
wistia-video {
display: block;
width: 100%;
aspect-ratio: 16 / 9;
background: #000;
Expand Down
5 changes: 4 additions & 1 deletion wistia-video-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ const templateShadowDOM = document.createElement('template');
templateShadowDOM.innerHTML = /*html*/`
<style>
:host {
width: 100%;
display: inline-block;
min-width: 300px;
min-height: 150px;
position: relative;
}
::slotted(.wistia_embed) {
position: absolute;
width: 100%;
height: 100%;
}
</style>
Expand Down

1 comment on commit 4b7ef4d

@vercel
Copy link

@vercel vercel bot commented on 4b7ef4d Apr 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wistia-video-element – ./

wistia-video-element.vercel.app
wistia-video-element-luwes.vercel.app
wistia-video-element-git-main-luwes.vercel.app

Please sign in to comment.