Skip to content

Commit bc7955a

Browse files
committed
adjust styling
1 parent 6a3193d commit bc7955a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

client/components/RootPage.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ import styled from 'styled-components';
22
import { prop } from '../theme';
33

44
const RootPage = styled.div`
5-
min-height: 100%;
5+
min-height: 100vh;
6+
height: ${({ fixedHeight }) => fixedHeight || '100vh'};
67
display: flex;
7-
justify-content: start;
8+
justify-content: flex-start;
89
flex-direction: column;
910
color: ${prop('primaryTextColor')};
1011
background-color: ${prop('backgroundColor')};
11-
height: ${({ fixedHeight }) => fixedHeight || 'initial'};
1212
1313
@media (max-width: 770px) {
1414
height: 100%;
1515
overflow: hidden;
1616
}
17+
1718
@media print {
1819
@page {
1920
page-orientation: landscape;

client/styles/base/_base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ button {
5151
.root-app,
5252
.app {
5353
min-height: 100%;
54-
height: 100%;
54+
height: 100vh;
5555
}
5656

5757
a {

client/styles/components/_preview-frame.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
.preview-frame-holder {
44
display: flex;
55
flex-direction: column;
6-
height: 100%;
6+
height: 100% !important;
7+
overflow: hidden;
78
}
89

910
.preview-frame-overlay {

0 commit comments

Comments
 (0)