Skip to content

Commit b425c67

Browse files
authored
Adjusting the height of modals and iframes for better display on mobile devices
1 parent ddffa4d commit b425c67

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

css/style.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ body {
883883
#editor-container {
884884
display: block;
885885
margin: 0;
886-
height: calc(100vh - 200px);
886+
height: calc(100svh - 200px);
887887
padding: 5px;
888888
border-radius: 5px;
889889
border: 1px solid LightGrey;
@@ -933,7 +933,7 @@ body {
933933

934934
#editor-css, #editor-html {
935935
background-color: White;
936-
height: calc(100vh - 200px);
936+
height: calc(100svh - 200px);
937937
width: 85%;
938938
border-radius: 5px;
939939
border: 1px solid Grey;
@@ -961,7 +961,7 @@ body {
961961
#preview-iframe {
962962
width: 100%;
963963
min-height: 600px;
964-
height: calc(100vh - var(--horizontal-bar-height) - 26px);
964+
height: calc(100svh - var(--horizontal-bar-height) - 26px);
965965
border: 0;
966966
outline: 1px solid Grey;
967967
}
@@ -983,11 +983,11 @@ body {
983983
display: block;
984984
padding: 20px;
985985
width: 90%;
986-
height: 90vh;
986+
height: 90svh;
987987

988988
#preview-container {
989989
display: block;
990-
max-height: calc(90vh - 10px);
990+
max-height: calc(90svh - 10px);
991991
overflow: scroll;
992992
}
993993

@@ -1004,7 +1004,7 @@ body {
10041004
display: block;
10051005
padding: 20px;
10061006
width: 90%;
1007-
height: 90vh;
1007+
height: 90svh;
10081008

10091009
#media-modal-title {
10101010
display: inline-block;
@@ -1030,7 +1030,7 @@ body {
10301030
#media-container {
10311031
display: grid;
10321032
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
1033-
max-height: calc(90vh - 10px);
1033+
max-height: calc(90svh - 10px);
10341034
overflow: scroll;
10351035

10361036
.media-item {
@@ -1099,7 +1099,7 @@ body {
10991099
.modal-content {
11001100
padding: 0 20px 10px 20px;
11011101
width: 780px;
1102-
max-height: 80vh;
1102+
max-height: 80svh;
11031103
overflow: hidden;
11041104

11051105
#close-references-modal {
@@ -1142,11 +1142,11 @@ body {
11421142
}
11431143

11441144
#mrt-wrapper1 {
1145-
max-height: calc(80vh - 70px);
1145+
max-height: calc(80svh - 70px);
11461146
overflow: hidden;
11471147

11481148
#mrt-wrapper2 {
1149-
max-height: calc(80vh - 80px);
1149+
max-height: calc(80svh - 80px);
11501150
overflow: scroll;
11511151

11521152
.data-table {
@@ -1625,7 +1625,7 @@ body {
16251625

16261626
#preview-iframe {
16271627
min-height: 400px;
1628-
height: calc(100vh - var(--horizontal-bar-height-mobile) - 26px);
1628+
height: calc(100svh - var(--horizontal-bar-height-mobile) - 26px);
16291629
}
16301630

16311631
#content {

0 commit comments

Comments
 (0)