Skip to content

Commit

Permalink
[Homepage] fix mobile video (#13309)
Browse files Browse the repository at this point in the history
* Removing attributes

* update url

* spacing adjustments
  • Loading branch information
alexcarpenter committed Nov 30, 2021
1 parent 07c42d2 commit c0e356e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
9 changes: 3 additions & 6 deletions website/components/io-video-callout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,10 @@ export default function IoVideoCallout({
<h2 className={s.videoHeading}>{heading}</h2>
<div className={s.video}>
<ReactPlayer
url={`https://www.youtube.com/embed/${youtubeId}`}
url={`https://www.youtube.com/watch?v=${youtubeId}`}
width="100%"
height="100%"
playing={true}
width="560"
height="315"
style={{
maxWidth: '100%',
}}
controls={true}
/>
</div>
Expand Down
8 changes: 0 additions & 8 deletions website/components/io-video-callout/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,4 @@
position: relative;
background-color: var(--gray-2);
aspect-ratio: 16 / 9;

& > * {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}

0 comments on commit c0e356e

Please sign in to comment.