Skip to content

Commit

Permalink
Force webcam to be full height
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbe-j committed Nov 12, 2023
1 parent fbe282d commit e3412f2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 10 additions & 2 deletions dance-app/src/Recording.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,19 @@
align-items: center;
justify-content: center;
height: 100dvh;
width: calc(1.778 * 100dvh);
}

video {
margin: auto;;
max-width: 600px;
margin: auto;
}

.video-container > video {
width: 100%;
max-width: 700px;
transform: translateX(calc((100dvw - 1.778 * 100dvh) / 2));
max-width: 60000px;
margin: none;
}

.countdown:before {
Expand Down
6 changes: 3 additions & 3 deletions dance-app/src/sections/recording.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ const RecordingPage = ({
const classes = useStyles(theme);

const constraints: { aspectRatio: number; height: number; width: number } = {
aspectRatio: 2.33,
height: 200,
width: 100,
aspectRatio: 3,
height: 720,
width: 1280,
};
const {
applyConstraints,
Expand Down

0 comments on commit e3412f2

Please sign in to comment.