Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -428,6 +428,54 @@ def create_ui():
|
|
428 |
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
|
429 |
}
|
430 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
431 |
/* Header styling */
|
432 |
.header-container {
|
433 |
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
@@ -632,9 +680,9 @@ def create_ui():
|
|
632 |
</div>
|
633 |
""")
|
634 |
|
635 |
-
# Main UI section
|
636 |
-
with gr.Row():
|
637 |
-
with gr.Column(scale=2):
|
638 |
# Template selection with visual cards
|
639 |
gr.Markdown("### 🎯 Choose Your Template")
|
640 |
|
@@ -650,9 +698,10 @@ def create_ui():
|
|
650 |
choices=available_templates,
|
651 |
value=default_template,
|
652 |
info="Select a predefined template to get started quickly",
|
653 |
-
elem_classes=["template-selector"],
|
654 |
interactive=True,
|
655 |
-
visible=True
|
|
|
|
|
656 |
)
|
657 |
|
658 |
# Template description with enhanced styling
|
|
|
428 |
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
|
429 |
}
|
430 |
|
431 |
+
/* Fix dropdown visibility issues */
|
432 |
+
.gr-dropdown {
|
433 |
+
position: relative !important;
|
434 |
+
z-index: 999 !important;
|
435 |
+
}
|
436 |
+
|
437 |
+
.gr-dropdown-container {
|
438 |
+
position: relative !important;
|
439 |
+
overflow: visible !important;
|
440 |
+
}
|
441 |
+
|
442 |
+
.gr-dropdown .gr-dropdown-list {
|
443 |
+
position: absolute !important;
|
444 |
+
z-index: 1000 !important;
|
445 |
+
background: white !important;
|
446 |
+
border: 1px solid #e0e0e0 !important;
|
447 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
|
448 |
+
max-height: 300px !important;
|
449 |
+
overflow-y: auto !important;
|
450 |
+
}
|
451 |
+
|
452 |
+
/* Ensure parent containers don't clip dropdown */
|
453 |
+
.gr-form, .gr-box, .gr-group {
|
454 |
+
overflow: visible !important;
|
455 |
+
}
|
456 |
+
|
457 |
+
.template-selector {
|
458 |
+
position: relative !important;
|
459 |
+
z-index: 100 !important;
|
460 |
+
}
|
461 |
+
|
462 |
+
/* Main content area fix */
|
463 |
+
.main-content {
|
464 |
+
overflow: visible !important;
|
465 |
+
position: relative;
|
466 |
+
z-index: 1;
|
467 |
+
}
|
468 |
+
|
469 |
+
.input-column {
|
470 |
+
overflow: visible !important;
|
471 |
+
position: relative;
|
472 |
+
}
|
473 |
+
|
474 |
+
/* Global overflow fix for dropdown visibility */
|
475 |
+
.gr-panel {
|
476 |
+
overflow: visible !important;
|
477 |
+
}
|
478 |
+
|
479 |
/* Header styling */
|
480 |
.header-container {
|
481 |
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
680 |
</div>
|
681 |
""")
|
682 |
|
683 |
+
# Main UI section with fixed overflow
|
684 |
+
with gr.Row(elem_classes=["main-content"]):
|
685 |
+
with gr.Column(scale=2, elem_classes=["input-column"]):
|
686 |
# Template selection with visual cards
|
687 |
gr.Markdown("### 🎯 Choose Your Template")
|
688 |
|
|
|
698 |
choices=available_templates,
|
699 |
value=default_template,
|
700 |
info="Select a predefined template to get started quickly",
|
|
|
701 |
interactive=True,
|
702 |
+
visible=True,
|
703 |
+
container=True,
|
704 |
+
scale=1
|
705 |
)
|
706 |
|
707 |
# Template description with enhanced styling
|