Spaces:
Running on Zero
Running on Zero
Make the Seed input compact like the other number boxes
Browse filesSeed is a standalone gr.Number, so it rendered a full-width, tall input
(~173x38) while every other number box in the panel is a compact slider
number box (~74-88 x 22). Gave the Seed gr.Number an elem_classes
("seed-field") in all three workspaces and constrained its input to
max-width 88px / height 22px / 12px font — now 88x22, matching the
steps and spacing boxes.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- app.py +9 -0
- ui/workspace_ct.py +1 -1
- ui/workspace_mr.py +1 -1
- ui/workspace_mr_brain.py +1 -1
app.py
CHANGED
|
@@ -891,6 +891,15 @@ button.ds-cta-mrb:hover { border-color: var(--mrb) !important; background: color
|
|
| 891 |
padding: 6px 8px !important;
|
| 892 |
font-size: 12px !important;
|
| 893 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 894 |
/* Pull the slider label and value tight to the left edge */
|
| 895 |
.controls .gradio-slider, .controls .gr-slider {
|
| 896 |
padding: 0 !important;
|
|
|
|
| 891 |
padding: 6px 8px !important;
|
| 892 |
font-size: 12px !important;
|
| 893 |
}
|
| 894 |
+
/* Seed is a standalone gr.Number — without this it renders a full-width,
|
| 895 |
+
tall input. Match the compact slider number boxes (height 22px, 12px). */
|
| 896 |
+
.controls .seed-field input[type="number"] {
|
| 897 |
+
max-width: 88px !important;
|
| 898 |
+
min-width: 0 !important;
|
| 899 |
+
height: 22px !important;
|
| 900 |
+
padding: 0 10px !important;
|
| 901 |
+
font-size: 12px !important;
|
| 902 |
+
}
|
| 903 |
/* Pull the slider label and value tight to the left edge */
|
| 904 |
.controls .gradio-slider, .controls .gr-slider {
|
| 905 |
padding: 0 !important;
|
ui/workspace_ct.py
CHANGED
|
@@ -91,7 +91,7 @@ def build(spaces_gpu: Any) -> tuple[gr.Group, gr.Button]:
|
|
| 91 |
|
| 92 |
gr.Markdown("##### Diffusion")
|
| 93 |
with gr.Row(equal_height=True):
|
| 94 |
-
seed = gr.Number(value=0, label="Seed", precision=0)
|
| 95 |
steps = gr.Slider(10, 60, value=30, step=1, label="Inference steps")
|
| 96 |
|
| 97 |
gr.Markdown("##### Quick presets")
|
|
|
|
| 91 |
|
| 92 |
gr.Markdown("##### Diffusion")
|
| 93 |
with gr.Row(equal_height=True):
|
| 94 |
+
seed = gr.Number(value=0, label="Seed", precision=0, elem_classes=["seed-field"])
|
| 95 |
steps = gr.Slider(10, 60, value=30, step=1, label="Inference steps")
|
| 96 |
|
| 97 |
gr.Markdown("##### Quick presets")
|
ui/workspace_mr.py
CHANGED
|
@@ -79,7 +79,7 @@ def build(spaces_gpu: Any) -> tuple[gr.Group, gr.Button]:
|
|
| 79 |
|
| 80 |
gr.Markdown("##### Diffusion")
|
| 81 |
with gr.Row(equal_height=True):
|
| 82 |
-
seed = gr.Number(value=0, label="Seed", precision=0)
|
| 83 |
steps = gr.Slider(10, 60, value=30, step=1, label="Inference steps")
|
| 84 |
cfg = gr.Slider(0.0, 20.0, value=15.0, step=0.5, label="CFG guidance")
|
| 85 |
|
|
|
|
| 79 |
|
| 80 |
gr.Markdown("##### Diffusion")
|
| 81 |
with gr.Row(equal_height=True):
|
| 82 |
+
seed = gr.Number(value=0, label="Seed", precision=0, elem_classes=["seed-field"])
|
| 83 |
steps = gr.Slider(10, 60, value=30, step=1, label="Inference steps")
|
| 84 |
cfg = gr.Slider(0.0, 20.0, value=15.0, step=0.5, label="CFG guidance")
|
| 85 |
|
ui/workspace_mr_brain.py
CHANGED
|
@@ -67,7 +67,7 @@ def build(spaces_gpu: Any) -> tuple[gr.Group, gr.Button]:
|
|
| 67 |
|
| 68 |
gr.Markdown("##### Diffusion")
|
| 69 |
with gr.Row(equal_height=True):
|
| 70 |
-
seed = gr.Number(value=0, label="Seed", precision=0)
|
| 71 |
steps = gr.Slider(10, 60, value=30, step=1, label="Inference steps")
|
| 72 |
cfg = gr.Slider(0.0, 20.0, value=10.0, step=0.5, label="CFG guidance")
|
| 73 |
|
|
|
|
| 67 |
|
| 68 |
gr.Markdown("##### Diffusion")
|
| 69 |
with gr.Row(equal_height=True):
|
| 70 |
+
seed = gr.Number(value=0, label="Seed", precision=0, elem_classes=["seed-field"])
|
| 71 |
steps = gr.Slider(10, 60, value=30, step=1, label="Inference steps")
|
| 72 |
cfg = gr.Slider(0.0, 20.0, value=10.0, step=0.5, label="CFG guidance")
|
| 73 |
|