Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -316,6 +316,54 @@ SLEEK_CSS = """
|
|
| 316 |
|
| 317 |
/* Voice hint */
|
| 318 |
.voice-hint { font-size: 12px; color:#9fb0cc; margin-top: 4px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 319 |
"""
|
| 320 |
|
| 321 |
VOICE_STT_HTML = """
|
|
|
|
| 316 |
|
| 317 |
/* Voice hint */
|
| 318 |
.voice-hint { font-size: 12px; color:#9fb0cc; margin-top: 4px; }
|
| 319 |
+
/* βββ MAKE ANALYSIS OUTPUT WINDOW MUCH TALLER & SCROLL-FRIENDLY βββ */
|
| 320 |
+
#chatbot_container {
|
| 321 |
+
flex: 1;
|
| 322 |
+
min-height: 0; /* Critical for proper flex shrinking */
|
| 323 |
+
}
|
| 324 |
+
|
| 325 |
+
#chatbot_container .gr-chatbot {
|
| 326 |
+
height: 100% !important;
|
| 327 |
+
max-height: none !important; /* Remove Gradio's artificial cap */
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
#chatbot_container .message-wrap {
|
| 331 |
+
max-width: 100% !important;
|
| 332 |
+
}
|
| 333 |
+
|
| 334 |
+
/* Make the actual message container take full height and scroll nicely */
|
| 335 |
+
#chatbot_container .chatbot {
|
| 336 |
+
overflow-y: auto !important;
|
| 337 |
+
overflow-x: hidden;
|
| 338 |
+
padding: 20px !important;
|
| 339 |
+
scrollbar-width: thin;
|
| 340 |
+
scrollbar-color: #3a4a6e #16203b;
|
| 341 |
+
}
|
| 342 |
+
|
| 343 |
+
/* Optional: nicer scrollbar for WebKit browsers */
|
| 344 |
+
#chatbot_container .chatbot::-webkit-scrollbar {
|
| 345 |
+
width: 8px;
|
| 346 |
+
}
|
| 347 |
+
#chatbot_container .chatbot::-webkit-scrollbar-track {
|
| 348 |
+
background: #16203b;
|
| 349 |
+
}
|
| 350 |
+
#chatbot_container .chatbot::-webkit-scrollbar-thumb {
|
| 351 |
+
background: #3a4a6e;
|
| 352 |
+
border-radius: 4px;
|
| 353 |
+
}
|
| 354 |
+
|
| 355 |
+
/* Make markdown content more readable in long reports */
|
| 356 |
+
#chatbot_container .message pre {
|
| 357 |
+
overflow-x: auto;
|
| 358 |
+
background: #0f1629 !important;
|
| 359 |
+
border: 1px solid #2a3755;
|
| 360 |
+
}
|
| 361 |
+
|
| 362 |
+
/* Increase visible height dramatically */
|
| 363 |
+
.main {
|
| 364 |
+
height: calc(100vh - 72px) !important; /* Already good */
|
| 365 |
+
padding: 12px 16px; /* Slightly less padding = more space */
|
| 366 |
+
}
|
| 367 |
"""
|
| 368 |
|
| 369 |
VOICE_STT_HTML = """
|