matt HOFFNER
commited on
Commit
·
cb5d7d2
1
Parent(s):
c2df9c2
cleanup styles
Browse files- app/page.module.css +8 -4
- app/page.tsx +1 -1
app/page.module.css
CHANGED
|
@@ -4,7 +4,6 @@
|
|
| 4 |
display: flex;
|
| 5 |
flex-direction: column;
|
| 6 |
justify-content: space-between;
|
| 7 |
-
padding: 6rem;
|
| 8 |
}
|
| 9 |
|
| 10 |
.description {
|
|
@@ -292,6 +291,9 @@
|
|
| 292 |
.main {
|
| 293 |
display: flex;
|
| 294 |
flex-direction: column;
|
|
|
|
|
|
|
|
|
|
| 295 |
}
|
| 296 |
|
| 297 |
.title {
|
|
@@ -302,10 +304,12 @@
|
|
| 302 |
|
| 303 |
.messages {
|
| 304 |
flex: 1;
|
| 305 |
-
|
|
|
|
|
|
|
|
|
|
| 306 |
}
|
| 307 |
|
| 308 |
-
/* Chat message styles */
|
| 309 |
.message {
|
| 310 |
background-color: #f9f9f9;
|
| 311 |
border-radius: 15px;
|
|
@@ -353,6 +357,7 @@
|
|
| 353 |
border: none;
|
| 354 |
border-radius: 4px;
|
| 355 |
cursor: pointer;
|
|
|
|
| 356 |
}
|
| 357 |
|
| 358 |
.button:disabled {
|
|
@@ -362,7 +367,6 @@
|
|
| 362 |
/* Form styles */
|
| 363 |
.form {
|
| 364 |
width: 100%;
|
| 365 |
-
max-width: 500px;
|
| 366 |
}
|
| 367 |
|
| 368 |
.flex {
|
|
|
|
| 4 |
display: flex;
|
| 5 |
flex-direction: column;
|
| 6 |
justify-content: space-between;
|
|
|
|
| 7 |
}
|
| 8 |
|
| 9 |
.description {
|
|
|
|
| 291 |
.main {
|
| 292 |
display: flex;
|
| 293 |
flex-direction: column;
|
| 294 |
+
height: 100vh;
|
| 295 |
+
justify-content: space-between;
|
| 296 |
+
padding: 2rem;
|
| 297 |
}
|
| 298 |
|
| 299 |
.title {
|
|
|
|
| 304 |
|
| 305 |
.messages {
|
| 306 |
flex: 1;
|
| 307 |
+
overflow-y: auto;
|
| 308 |
+
border: 1px solid #ddd;
|
| 309 |
+
padding: 1rem;
|
| 310 |
+
border-radius: 5px;
|
| 311 |
}
|
| 312 |
|
|
|
|
| 313 |
.message {
|
| 314 |
background-color: #f9f9f9;
|
| 315 |
border-radius: 15px;
|
|
|
|
| 357 |
border: none;
|
| 358 |
border-radius: 4px;
|
| 359 |
cursor: pointer;
|
| 360 |
+
width: 100%;
|
| 361 |
}
|
| 362 |
|
| 363 |
.button:disabled {
|
|
|
|
| 367 |
/* Form styles */
|
| 368 |
.form {
|
| 369 |
width: 100%;
|
|
|
|
| 370 |
}
|
| 371 |
|
| 372 |
.flex {
|
app/page.tsx
CHANGED
|
@@ -173,7 +173,7 @@ const Page: React.FC = () => {
|
|
| 173 |
className={styles.input}
|
| 174 |
/>
|
| 175 |
<button type="submit" className={styles.button} disabled={isLoading}>
|
| 176 |
-
{isLoading ? 'Loading...' : '
|
| 177 |
</button>
|
| 178 |
</form>
|
| 179 |
</main>
|
|
|
|
| 173 |
className={styles.input}
|
| 174 |
/>
|
| 175 |
<button type="submit" className={styles.button} disabled={isLoading}>
|
| 176 |
+
{isLoading ? 'Loading...' : 'Send'}
|
| 177 |
</button>
|
| 178 |
</form>
|
| 179 |
</main>
|