Skip to content

Commit 8fef774

Browse files
Fix height of the chat container so it doesn't overflow the viewport
1 parent 41d59c1 commit 8fef774

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

static/styles.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@
1515
html,
1616
body {
1717
max-width: 100vw;
18+
min-height: 100vh;
1819
overflow-x: hidden;
20+
height: 100%;
1921
}
2022

2123
body {
2224
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
2325
color: rgb(var(--foreground-rgb));
26+
display: flex;
27+
flex-direction: column;
2428
}
2529

2630
a {
@@ -72,12 +76,11 @@ pre {
7276
}
7377

7478
.main {
79+
flex: 1;
7580
display: flex;
7681
flex-direction: column;
77-
justify-content: center;
78-
align-items: center;
79-
height: 100vh;
8082
background-color: white;
83+
align-items: center;
8184
}
8285

8386
.title {
@@ -87,15 +90,13 @@ pre {
8790
}
8891

8992
.container {
93+
flex: 1;
9094
display: flex;
91-
flex-direction: row;
9295
gap: 20px;
9396
max-width: 1200px;
9497
width: 100%;
9598
padding: 20px;
9699
box-sizing: border-box;
97-
align-items: flex-start;
98-
justify-content: center;
99100
}
100101

101102
.category {
@@ -123,7 +124,6 @@ pre {
123124
.container {
124125
display: flex;
125126
width: 100%;
126-
height: 100vh;
127127
max-width: 700px;
128128
}
129129

0 commit comments

Comments
 (0)