Remove viewport units

This commit is contained in:
Robert Long 2021-12-10 15:07:39 -08:00
commit 11eb137184
5 changed files with 76 additions and 60 deletions

View file

@ -2,7 +2,7 @@
display: flex; display: flex;
flex: 1; flex: 1;
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100%;
} }
.splitContainer { .splitContainer {

View file

@ -8,6 +8,7 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding: 0 20px; padding: 0 20px;
height: 100%;
} }
.content { .content {
@ -15,7 +16,7 @@
flex-direction: column; flex-direction: column;
max-width: 400px; max-width: 400px;
width: 100%; width: 100%;
height: 100vh; min-height: 100%;
} }
.formContainer { .formContainer {

View file

@ -300,6 +300,7 @@ function RoomSetupView({
</RightNav> </RightNav>
</Header> </Header>
<div className={styles.joinRoom}> <div className={styles.joinRoom}>
<div className={styles.joinRoomContent}>
<h1>New Call</h1> <h1>New Call</h1>
{hasLocalParticipant && ( {hasLocalParticipant && (
<p>Warning, you are signed into this call on another device.</p> <p>Warning, you are signed into this call on another device.</p>
@ -345,14 +346,20 @@ function RoomSetupView({
)} )}
</div> </div>
<p>Or</p> <p>Or</p>
<CopyButton value={window.location.href} className={styles.copyButton}> <CopyButton
value={window.location.href}
className={styles.copyButton}
>
Copy call link and join later Copy call link and join later
</CopyButton> </CopyButton>
</div>
<div className={styles.joinRoomFooter}>
<Link className={styles.homeLink} to="/"> <Link className={styles.homeLink} to="/">
Take me Home Take me Home
</Link> </Link>
</div> </div>
</div> </div>
</div>
); );
} }

View file

@ -18,13 +18,14 @@ limitations under the License.
position: relative; position: relative;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 100vh;
min-height: -webkit-fill-available;
overflow: hidden; overflow: hidden;
min-height: 100%;
} }
.inRoom { .inRoom {
width: 100vw; position: fixed;
height: 100%;
width: 100%;
} }
.joinRoom { .joinRoom {
@ -33,7 +34,18 @@ limitations under the License.
align-items: center; align-items: center;
flex: 1; flex: 1;
overflow: hidden; overflow: hidden;
margin-bottom: 20px; height: 100%;
}
.joinRoomContent {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
}
.joinRoomFooter {
margin: 20px 0;
} }
.homeLink { .homeLink {
@ -139,10 +151,6 @@ limitations under the License.
} }
@media (min-width: 800px) { @media (min-width: 800px) {
.room {
position: fixed;
}
.roomContainer { .roomContainer {
flex-direction: row; flex-direction: row;
} }

View file

@ -129,7 +129,7 @@ body {
html, html,
body, body,
#root { #root {
height: 100vh; height: 100%;
} }
#root { #root {