Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -348,8 +348,8 @@ fixed_css = """
|
|
| 348 |
flex: 1 !important;
|
| 349 |
overflow-y: auto !important;
|
| 350 |
padding: 1.5rem !important;
|
| 351 |
-
height: calc(100% -
|
| 352 |
-
max-height: calc(100% -
|
| 353 |
min-height: 300px !important;
|
| 354 |
}
|
| 355 |
|
|
@@ -362,8 +362,9 @@ fixed_css = """
|
|
| 362 |
display: flex !important;
|
| 363 |
flex-direction: column !important;
|
| 364 |
gap: 1rem !important;
|
| 365 |
-
height:
|
| 366 |
-
max-height:
|
|
|
|
| 367 |
overflow-y: auto !important;
|
| 368 |
}
|
| 369 |
|
|
@@ -470,12 +471,12 @@ fixed_css = """
|
|
| 470 |
padding: 1rem !important;
|
| 471 |
font-size: 0.95rem !important;
|
| 472 |
line-height: 1.4 !important;
|
| 473 |
-
resize:
|
| 474 |
transition: all 0.3s ease !important;
|
| 475 |
width: 100% !important;
|
| 476 |
margin-bottom: 1rem !important;
|
| 477 |
-
height:
|
| 478 |
-
max-height:
|
| 479 |
min-height: 60px !important;
|
| 480 |
flex-shrink: 0 !important;
|
| 481 |
}
|
|
@@ -551,6 +552,7 @@ fixed_css = """
|
|
| 551 |
border: none !important;
|
| 552 |
background: transparent !important;
|
| 553 |
overflow-y: auto !important;
|
|
|
|
| 554 |
}
|
| 555 |
|
| 556 |
/* Footer - FIXED positioning */
|
|
@@ -630,16 +632,15 @@ code {
|
|
| 630 |
}
|
| 631 |
|
| 632 |
.chat-area {
|
| 633 |
-
height: calc(100% -
|
| 634 |
-
max-height: calc(100% -
|
| 635 |
}
|
| 636 |
|
| 637 |
.header-title {
|
| 638 |
font-size: 1.8rem !important;
|
| 639 |
}
|
| 640 |
-
}
|
| 641 |
"""
|
| 642 |
-
|
| 643 |
def process_chat_message(message, files, history):
|
| 644 |
"""Process a new chat message with download support."""
|
| 645 |
if not message.strip() and not files:
|
|
|
|
| 348 |
flex: 1 !important;
|
| 349 |
overflow-y: auto !important;
|
| 350 |
padding: 1.5rem !important;
|
| 351 |
+
height: calc(100% - 280px) !important;
|
| 352 |
+
max-height: calc(100% - 280px) !important;
|
| 353 |
min-height: 300px !important;
|
| 354 |
}
|
| 355 |
|
|
|
|
| 362 |
display: flex !important;
|
| 363 |
flex-direction: column !important;
|
| 364 |
gap: 1rem !important;
|
| 365 |
+
height: 280px !important;
|
| 366 |
+
max-height: 280px !important;
|
| 367 |
+
min-height: 280px !important;
|
| 368 |
overflow-y: auto !important;
|
| 369 |
}
|
| 370 |
|
|
|
|
| 471 |
padding: 1rem !important;
|
| 472 |
font-size: 0.95rem !important;
|
| 473 |
line-height: 1.4 !important;
|
| 474 |
+
resize: vertical !important;
|
| 475 |
transition: all 0.3s ease !important;
|
| 476 |
width: 100% !important;
|
| 477 |
margin-bottom: 1rem !important;
|
| 478 |
+
height: 80px !important;
|
| 479 |
+
max-height: 120px !important;
|
| 480 |
min-height: 60px !important;
|
| 481 |
flex-shrink: 0 !important;
|
| 482 |
}
|
|
|
|
| 552 |
border: none !important;
|
| 553 |
background: transparent !important;
|
| 554 |
overflow-y: auto !important;
|
| 555 |
+
scroll-behavior: smooth !important;
|
| 556 |
}
|
| 557 |
|
| 558 |
/* Footer - FIXED positioning */
|
|
|
|
| 632 |
}
|
| 633 |
|
| 634 |
.chat-area {
|
| 635 |
+
height: calc(100% - 340px) !important;
|
| 636 |
+
max-height: calc(100% - 340px) !important;
|
| 637 |
}
|
| 638 |
|
| 639 |
.header-title {
|
| 640 |
font-size: 1.8rem !important;
|
| 641 |
}
|
| 642 |
+
}
|
| 643 |
"""
|
|
|
|
| 644 |
def process_chat_message(message, files, history):
|
| 645 |
"""Process a new chat message with download support."""
|
| 646 |
if not message.strip() and not files:
|