Skip to content

Commit dd48b2f

Browse files
committed
Fix overflow issues if large output
1 parent 48256c2 commit dd48b2f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

public/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
margin: 0;
2727
padding: 0;
2828
height: 100vh;
29+
max-width: 100vw;
30+
width: 100%;
2931
box-sizing: border-box;
3032
font-family: sans-serif;
3133
font-size: 16px;
@@ -40,13 +42,13 @@
4042
body {
4143
display: grid;
4244
grid-template-areas: "header header" "main aside" "footer footer";
43-
grid-template-columns: 1fr clamp(170px, 20vw, 320px);
45+
grid-template-columns: minmax(0, 1fr) clamp(170px, 20vw, 320px);
4446
grid-template-rows: auto 1fr auto;
4547
}
4648
@media (max-width: 380px) {
4749
body {
4850
grid-template-areas: "header" "main" "aside" "footer";
49-
grid-template-columns: 1fr;
51+
grid-template-columns: minmax(0, 1fr);
5052
grid-template-rows: auto auto 1fr auto;
5153
}
5254
}
@@ -108,6 +110,7 @@
108110
background-color: var(--pre-background-color);
109111
border: 1px solid var(--pre-background-border);
110112
border-radius: var(--border-radius);
113+
overflow-x: scroll;
111114
}
112115
#copy-icon {
113116
position: absolute;

0 commit comments

Comments
 (0)