Skip to content

Commit

Permalink
fix: make the video fill the available space
Browse files Browse the repository at this point in the history
  • Loading branch information
fbaiodias committed Mar 17, 2018
1 parent e3cd1ba commit 9593039
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/video-recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@ const CameraView = styled.div`
`

const Video = styled.video`
width: 100%;
max-height: 100%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-height: 100%;
min-width: 100%;
`

const isIOSSafari = () => {
Expand Down

0 comments on commit 9593039

Please sign in to comment.