Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
57a9d38
1
Parent(s):
0a6e04f
fix: position dropdown menus below their respective buttons
Browse files
app.py
CHANGED
|
@@ -1519,16 +1519,27 @@ def create_interface() -> gr.Blocks:
|
|
| 1519 |
/* Dropdown styling and z-index */
|
| 1520 |
.gr-dropdown {
|
| 1521 |
z-index: 999 !important;
|
|
|
|
| 1522 |
}
|
| 1523 |
|
| 1524 |
.gr-dropdown-container {
|
| 1525 |
z-index: 999 !important;
|
| 1526 |
overflow: visible !important;
|
|
|
|
| 1527 |
}
|
| 1528 |
|
|
|
|
|
|
|
|
|
|
| 1529 |
.gr-dropdown-menu {
|
| 1530 |
-
z-index:
|
| 1531 |
overflow: visible !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1532 |
}
|
| 1533 |
|
| 1534 |
/* Loading page styling */
|
|
|
|
| 1519 |
/* Dropdown styling and z-index */
|
| 1520 |
.gr-dropdown {
|
| 1521 |
z-index: 999 !important;
|
| 1522 |
+
position: relative !important;
|
| 1523 |
}
|
| 1524 |
|
| 1525 |
.gr-dropdown-container {
|
| 1526 |
z-index: 999 !important;
|
| 1527 |
overflow: visible !important;
|
| 1528 |
+
position: relative !important;
|
| 1529 |
}
|
| 1530 |
|
| 1531 |
+
/* Dropdown menu positioning - appear below button */
|
| 1532 |
+
.gr-dropdown ul[role="listbox"],
|
| 1533 |
+
.gr-dropdown .options,
|
| 1534 |
.gr-dropdown-menu {
|
| 1535 |
+
z-index: 9999 !important;
|
| 1536 |
overflow: visible !important;
|
| 1537 |
+
position: absolute !important;
|
| 1538 |
+
top: 100% !important;
|
| 1539 |
+
left: 0 !important;
|
| 1540 |
+
width: 100% !important;
|
| 1541 |
+
max-height: 300px !important;
|
| 1542 |
+
overflow-y: auto !important;
|
| 1543 |
}
|
| 1544 |
|
| 1545 |
/* Loading page styling */
|