fixed component height
Browse files
app.py
CHANGED
|
@@ -312,6 +312,9 @@ dark_theme_css = """
|
|
| 312 |
.gradio-container {
|
| 313 |
background-color: #000000 !important;
|
| 314 |
color: white !important;
|
|
|
|
|
|
|
|
|
|
| 315 |
}
|
| 316 |
|
| 317 |
/* Remove borders from all components */
|
|
@@ -332,6 +335,29 @@ dark_theme_css = """
|
|
| 332 |
left: 0 !important;
|
| 333 |
top: 0 !important;
|
| 334 |
width: 300px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 335 |
}
|
| 336 |
|
| 337 |
/* Enhanced model button styling */
|
|
@@ -416,7 +442,8 @@ dark_theme_css = """
|
|
| 416 |
background-color: #000000 !important;
|
| 417 |
border: none !important;
|
| 418 |
transition: opacity 0.6s ease-in-out !important;
|
| 419 |
-
|
|
|
|
| 420 |
overflow-y: auto !important;
|
| 421 |
scrollbar-width: thin !important;
|
| 422 |
scrollbar-color: #333333 #000000 !important;
|
|
@@ -550,7 +577,10 @@ h1, h2, h3, p, .markdown {
|
|
| 550 |
padding: 20px !important;
|
| 551 |
margin-left: 300px !important;
|
| 552 |
height: 100vh !important;
|
| 553 |
-
overflow:
|
|
|
|
|
|
|
|
|
|
| 554 |
}
|
| 555 |
|
| 556 |
/* Custom scrollbar for main content */
|
|
@@ -577,7 +607,7 @@ h1, h2, h3, p, .markdown {
|
|
| 577 |
background-color: #555555 !important;
|
| 578 |
}
|
| 579 |
|
| 580 |
-
/* Failed tests display - seamless appearance with
|
| 581 |
.failed-tests textarea {
|
| 582 |
background-color: #000000 !important;
|
| 583 |
color: #FFFFFF !important;
|
|
@@ -587,9 +617,9 @@ h1, h2, h3, p, .markdown {
|
|
| 587 |
padding: 10px !important;
|
| 588 |
outline: none !important;
|
| 589 |
line-height: 1.4 !important;
|
| 590 |
-
height:
|
| 591 |
-
max-height:
|
| 592 |
-
min-height:
|
| 593 |
overflow-y: auto !important;
|
| 594 |
resize: none !important;
|
| 595 |
scrollbar-width: thin !important;
|
|
@@ -630,17 +660,20 @@ h1, h2, h3, p, .markdown {
|
|
| 630 |
|
| 631 |
.failed-tests {
|
| 632 |
background-color: #000000 !important;
|
| 633 |
-
height:
|
| 634 |
-
max-height:
|
|
|
|
| 635 |
position: relative;
|
| 636 |
transition: opacity 0.5s ease-in-out !important;
|
|
|
|
| 637 |
}
|
| 638 |
|
| 639 |
.failed-tests .gr-textbox {
|
| 640 |
background-color: #000000 !important;
|
| 641 |
border: none !important;
|
| 642 |
-
height:
|
| 643 |
-
max-height:
|
|
|
|
| 644 |
transition: opacity 0.5s ease-in-out !important;
|
| 645 |
}
|
| 646 |
|
|
@@ -671,6 +704,14 @@ h1, h2, h3, p, .markdown {
|
|
| 671 |
|
| 672 |
|
| 673 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 674 |
/* JavaScript to reset scroll position */
|
| 675 |
.scroll-reset {
|
| 676 |
animation: resetScroll 0.1s ease;
|
|
|
|
| 312 |
.gradio-container {
|
| 313 |
background-color: #000000 !important;
|
| 314 |
color: white !important;
|
| 315 |
+
height: 100vh !important;
|
| 316 |
+
max-height: 100vh !important;
|
| 317 |
+
overflow: hidden !important;
|
| 318 |
}
|
| 319 |
|
| 320 |
/* Remove borders from all components */
|
|
|
|
| 335 |
left: 0 !important;
|
| 336 |
top: 0 !important;
|
| 337 |
width: 300px !important;
|
| 338 |
+
box-sizing: border-box !important;
|
| 339 |
+
overflow-y: auto !important;
|
| 340 |
+
scrollbar-width: thin !important;
|
| 341 |
+
scrollbar-color: #333333 #111111 !important;
|
| 342 |
+
}
|
| 343 |
+
|
| 344 |
+
/* Sidebar scrollbar styling */
|
| 345 |
+
.sidebar::-webkit-scrollbar {
|
| 346 |
+
width: 8px !important;
|
| 347 |
+
background: #111111 !important;
|
| 348 |
+
}
|
| 349 |
+
|
| 350 |
+
.sidebar::-webkit-scrollbar-track {
|
| 351 |
+
background: #111111 !important;
|
| 352 |
+
}
|
| 353 |
+
|
| 354 |
+
.sidebar::-webkit-scrollbar-thumb {
|
| 355 |
+
background-color: #333333 !important;
|
| 356 |
+
border-radius: 4px !important;
|
| 357 |
+
}
|
| 358 |
+
|
| 359 |
+
.sidebar::-webkit-scrollbar-thumb:hover {
|
| 360 |
+
background-color: #555555 !important;
|
| 361 |
}
|
| 362 |
|
| 363 |
/* Enhanced model button styling */
|
|
|
|
| 442 |
background-color: #000000 !important;
|
| 443 |
border: none !important;
|
| 444 |
transition: opacity 0.6s ease-in-out !important;
|
| 445 |
+
flex: 1 1 auto !important;
|
| 446 |
+
min-height: 0 !important;
|
| 447 |
overflow-y: auto !important;
|
| 448 |
scrollbar-width: thin !important;
|
| 449 |
scrollbar-color: #333333 #000000 !important;
|
|
|
|
| 577 |
padding: 20px !important;
|
| 578 |
margin-left: 300px !important;
|
| 579 |
height: 100vh !important;
|
| 580 |
+
overflow-y: auto !important;
|
| 581 |
+
box-sizing: border-box !important;
|
| 582 |
+
display: flex !important;
|
| 583 |
+
flex-direction: column !important;
|
| 584 |
}
|
| 585 |
|
| 586 |
/* Custom scrollbar for main content */
|
|
|
|
| 607 |
background-color: #555555 !important;
|
| 608 |
}
|
| 609 |
|
| 610 |
+
/* Failed tests display - seamless appearance with constrained height */
|
| 611 |
.failed-tests textarea {
|
| 612 |
background-color: #000000 !important;
|
| 613 |
color: #FFFFFF !important;
|
|
|
|
| 617 |
padding: 10px !important;
|
| 618 |
outline: none !important;
|
| 619 |
line-height: 1.4 !important;
|
| 620 |
+
height: 180px !important;
|
| 621 |
+
max-height: 180px !important;
|
| 622 |
+
min-height: 180px !important;
|
| 623 |
overflow-y: auto !important;
|
| 624 |
resize: none !important;
|
| 625 |
scrollbar-width: thin !important;
|
|
|
|
| 660 |
|
| 661 |
.failed-tests {
|
| 662 |
background-color: #000000 !important;
|
| 663 |
+
height: 200px !important;
|
| 664 |
+
max-height: 200px !important;
|
| 665 |
+
min-height: 200px !important;
|
| 666 |
position: relative;
|
| 667 |
transition: opacity 0.5s ease-in-out !important;
|
| 668 |
+
flex-shrink: 0 !important;
|
| 669 |
}
|
| 670 |
|
| 671 |
.failed-tests .gr-textbox {
|
| 672 |
background-color: #000000 !important;
|
| 673 |
border: none !important;
|
| 674 |
+
height: 180px !important;
|
| 675 |
+
max-height: 180px !important;
|
| 676 |
+
min-height: 180px !important;
|
| 677 |
transition: opacity 0.5s ease-in-out !important;
|
| 678 |
}
|
| 679 |
|
|
|
|
| 704 |
|
| 705 |
|
| 706 |
|
| 707 |
+
/* Detail view layout */
|
| 708 |
+
.detail-view {
|
| 709 |
+
display: flex !important;
|
| 710 |
+
flex-direction: column !important;
|
| 711 |
+
height: 100% !important;
|
| 712 |
+
min-height: 0 !important;
|
| 713 |
+
}
|
| 714 |
+
|
| 715 |
/* JavaScript to reset scroll position */
|
| 716 |
.scroll-reset {
|
| 717 |
animation: resetScroll 0.1s ease;
|