Update app.py
Browse files
app.py
CHANGED
|
@@ -552,6 +552,32 @@ def create_interface():
|
|
| 552 |
line-height: 1.4 !important;
|
| 553 |
}
|
| 554 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 555 |
/* Mobile-first responsive breakpoints */
|
| 556 |
|
| 557 |
/* Small devices (phones, 320px and up) */
|
|
|
|
| 552 |
line-height: 1.4 !important;
|
| 553 |
}
|
| 554 |
|
| 555 |
+
/* Ensure gr-markdown content is always visible and not hidden by overflow */
|
| 556 |
+
.gr-markdown {
|
| 557 |
+
overflow: visible !important; /* Prevent text from being clipped */
|
| 558 |
+
min-height: unset !important; /* Ensure it doesn't collapse */
|
| 559 |
+
width: 100% !important; /* Ensure it takes full available width */
|
| 560 |
+
box-sizing: border-box !important; /* Include padding and border in the element's total width and height */
|
| 561 |
+
padding: 1rem !important; /* Add some default padding to markdown blocks */
|
| 562 |
+
}
|
| 563 |
+
|
| 564 |
+
/* Ensure the main title and intro text are always at the top and visible */
|
| 565 |
+
.gradio-container > .gr-block:first-child {
|
| 566 |
+
/* This targets the first block inside the main container, which is usually the title Markdown */
|
| 567 |
+
display: block !important; /* Ensure it's not hidden by flex/grid */
|
| 568 |
+
width: 100% !important;
|
| 569 |
+
margin-bottom: 1.5rem !important; /* Add some space below the intro text */
|
| 570 |
+
padding: 0 0.5rem !important; /* Adjust padding for the top markdown block */
|
| 571 |
+
}
|
| 572 |
+
|
| 573 |
+
/* Adjust accordion header font size on small screens if it's too big */
|
| 574 |
+
@media (max-width: 640px) {
|
| 575 |
+
.gr-accordion-header {
|
| 576 |
+
font-size: 0.95rem !important; /* Slightly smaller for mobile headers */
|
| 577 |
+
padding: 0.75rem !important;
|
| 578 |
+
}
|
| 579 |
+
}
|
| 580 |
+
|
| 581 |
/* Mobile-first responsive breakpoints */
|
| 582 |
|
| 583 |
/* Small devices (phones, 320px and up) */
|