Skip to content

Commit 5dda93e

Browse files
authored
Make text area height properly adjust to small screens (#38)
1 parent 5e2f2c4 commit 5dda93e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
display: grid;
4646
grid-template-rows: auto 1fr auto;
4747
transition: background var(--transition);
48+
overflow: hidden;
4849
}
4950

5051
body,
@@ -91,11 +92,13 @@
9192
display: flex;
9293
justify-content: center;
9394
align-items: center;
95+
overflow: hidden;
96+
min-height: 0;
9497
}
9598

9699
#editor {
97100
width: 100%;
98-
height: 80vh;
101+
height: min(80vh, 100%);
99102
padding-inline: clamp(20px, 10vw, 20vh);
100103
padding-block: 2.5vh;
101104
font: inherit;

0 commit comments

Comments
 (0)