Spaces:
Running on Zero
Running on Zero
fix: dropdown not being accesible
Browse files
app.py
CHANGED
|
@@ -214,7 +214,7 @@ with gr.Blocks(title="P-H3-Image", fill_width=True) as demo:
|
|
| 214 |
with gr.Column():
|
| 215 |
t_prompt = gr.Textbox(label="Prompt", lines=4)
|
| 216 |
with gr.Row():
|
| 217 |
-
t_aspect = gr.Dropdown(list(RATIOS), value="4:3", label="Aspect ratio")
|
| 218 |
t_resolution = gr.Radio(T2I_RESOLUTIONS, value="8 MP", label="Resolution")
|
| 219 |
t_upsample = gr.Checkbox(value=True, label="Prompt upsampling")
|
| 220 |
t_button = gr.Button("Generate", variant="primary")
|
|
|
|
| 214 |
with gr.Column():
|
| 215 |
t_prompt = gr.Textbox(label="Prompt", lines=4)
|
| 216 |
with gr.Row():
|
| 217 |
+
t_aspect = gr.Dropdown(list(RATIOS), value="4:3", label="Aspect ratio", filterable=False)
|
| 218 |
t_resolution = gr.Radio(T2I_RESOLUTIONS, value="8 MP", label="Resolution")
|
| 219 |
t_upsample = gr.Checkbox(value=True, label="Prompt upsampling")
|
| 220 |
t_button = gr.Button("Generate", variant="primary")
|
theme.py
CHANGED
|
@@ -563,26 +563,23 @@ input:focus, textarea:focus, select:focus {
|
|
| 563 |
}
|
| 564 |
|
| 565 |
.options,
|
| 566 |
-
ul.options
|
| 567 |
-
|
| 568 |
-
top: calc(100% + 4px) !important;
|
| 569 |
-
bottom: auto !important;
|
| 570 |
-
left: 0 !important;
|
| 571 |
-
right: auto !important;
|
| 572 |
-
width: 100% !important;
|
| 573 |
-
max-height: min(280px, 60vh) !important;
|
| 574 |
background: var(--pruna-bg-card) !important;
|
| 575 |
color: var(--pruna-text-primary) !important;
|
| 576 |
-
border:
|
| 577 |
border-radius: 10px !important;
|
| 578 |
-
|
| 579 |
-
|
|
|
|
| 580 |
}
|
| 581 |
.options .item,
|
| 582 |
.options li { color: var(--pruna-text-primary) !important; }
|
| 583 |
.options .item:hover,
|
| 584 |
.options li:hover,
|
| 585 |
-
.options .item.selected
|
|
|
|
|
|
|
| 586 |
background: var(--pruna-dropdown-hover) !important;
|
| 587 |
color: var(--pruna-text-primary) !important;
|
| 588 |
}
|
|
|
|
| 563 |
}
|
| 564 |
|
| 565 |
.options,
|
| 566 |
+
ul.options,
|
| 567 |
+
.option-list {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 568 |
background: var(--pruna-bg-card) !important;
|
| 569 |
color: var(--pruna-text-primary) !important;
|
| 570 |
+
border-color: var(--pruna-border) !important;
|
| 571 |
border-radius: 10px !important;
|
| 572 |
+
}
|
| 573 |
+
.options {
|
| 574 |
+
border: 1px solid var(--pruna-border) !important;
|
| 575 |
}
|
| 576 |
.options .item,
|
| 577 |
.options li { color: var(--pruna-text-primary) !important; }
|
| 578 |
.options .item:hover,
|
| 579 |
.options li:hover,
|
| 580 |
+
.options .item.selected,
|
| 581 |
+
.options .item.active,
|
| 582 |
+
.options .active {
|
| 583 |
background: var(--pruna-dropdown-hover) !important;
|
| 584 |
color: var(--pruna-text-primary) !important;
|
| 585 |
}
|