ASesYusuf1 commited on
Commit
db94774
·
verified ·
1 Parent(s): c7aa477

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -175,7 +175,7 @@ CSS = """
175
  min-height: 100vh;
176
  background: linear-gradient(135deg, #1a0b2e, #2e1a47);
177
  position: relative;
178
- overflow: visible;
179
  }
180
  body {
181
  background: none;
@@ -322,7 +322,7 @@ button:hover {
322
  font-size: 1rem !important;
323
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
324
  position: relative;
325
- z-index: 100;
326
  }
327
  .compact-dropdown:hover {
328
  border-color: #ff8787 !important;
@@ -346,13 +346,18 @@ button:hover {
346
  color: #e0e0e0 !important;
347
  max-height: 300px !important;
348
  overflow-y: auto !important;
349
- z-index: 200 !important;
350
  width: 100% !important;
351
  opacity: 1 !important;
352
  visibility: visible !important;
353
  position: absolute !important;
354
  top: 100% !important;
355
  left: 0 !important;
 
 
 
 
 
356
  }
357
  .compact-dropdown .gr-dropdown-menu option {
358
  padding: 8px !important;
 
175
  min-height: 100vh;
176
  background: linear-gradient(135deg, #1a0b2e, #2e1a47);
177
  position: relative;
178
+ overflow: visible; /* Ensure no clipping */
179
  }
180
  body {
181
  background: none;
 
322
  font-size: 1rem !important;
323
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
324
  position: relative;
325
+ z-index: 100; /* Base z-index for dropdown */
326
  }
327
  .compact-dropdown:hover {
328
  border-color: #ff8787 !important;
 
346
  color: #e0e0e0 !important;
347
  max-height: 300px !important;
348
  overflow-y: auto !important;
349
+ z-index: 300 !important; /* Increased z-index to ensure it stays above other elements */
350
  width: 100% !important;
351
  opacity: 1 !important;
352
  visibility: visible !important;
353
  position: absolute !important;
354
  top: 100% !important;
355
  left: 0 !important;
356
+ /* Add hover persistence */
357
+ pointer-events: auto !important;
358
+ }
359
+ .compact-dropdown:hover .gr-dropdown-menu {
360
+ display: block !important; /* Ensure menu stays open on hover */
361
  }
362
  .compact-dropdown .gr-dropdown-menu option {
363
  padding: 8px !important;