matt HOFFNER
commited on
Commit
·
1aed040
1
Parent(s):
dd225cf
does it work now
Browse files- app/input.tsx +1 -1
- app/page.module.css +21 -3
app/input.tsx
CHANGED
|
@@ -82,7 +82,7 @@ const VoiceInputForm: React.FC<VoiceInputFormProps> = ({ handleSubmit, input, se
|
|
| 82 |
if (transcriber.isComplete) {
|
| 83 |
handleTranscriptionComplete();
|
| 84 |
}
|
| 85 |
-
}, [transcriber
|
| 86 |
|
| 87 |
useEffect(() => {
|
| 88 |
if (recognizedText) {
|
|
|
|
| 82 |
if (transcriber.isComplete) {
|
| 83 |
handleTranscriptionComplete();
|
| 84 |
}
|
| 85 |
+
}, [transcriber]);
|
| 86 |
|
| 87 |
useEffect(() => {
|
| 88 |
if (recognizedText) {
|
app/page.module.css
CHANGED
|
@@ -295,10 +295,28 @@
|
|
| 295 |
}
|
| 296 |
|
| 297 |
.messages {
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
|
|
|
|
|
|
| 301 |
padding: 25px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 302 |
}
|
| 303 |
|
| 304 |
.message {
|
|
|
|
| 295 |
}
|
| 296 |
|
| 297 |
.messages {
|
| 298 |
+
display: flex;
|
| 299 |
+
flex-direction: column;
|
| 300 |
+
justify-content: flex-end; /* Aligns messages to the bottom */
|
| 301 |
+
max-height: 80vh; /* Adjust the percentage as needed */
|
| 302 |
+
overflow-y: auto; /* Allows scrolling if content exceeds container height */
|
| 303 |
padding: 25px;
|
| 304 |
+
border-radius: 10px;
|
| 305 |
+
margin-bottom: 10px; /* Space between chat container and input field */
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
/* Responsive adjustments */
|
| 309 |
+
@media (max-width: 768px) {
|
| 310 |
+
.messages {
|
| 311 |
+
max-height: 70vh; /* More space for smaller screens */
|
| 312 |
+
}
|
| 313 |
+
}
|
| 314 |
+
|
| 315 |
+
/* Further adjustments can be made for smaller screens */
|
| 316 |
+
@media (max-width: 480px) {
|
| 317 |
+
.messages {
|
| 318 |
+
max-height: 60vh;
|
| 319 |
+
}
|
| 320 |
}
|
| 321 |
|
| 322 |
.message {
|