mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-04 05:45:05 +08:00
update seed/subseed HTML widths
This commit is contained in:
parent
f0b72b8121
commit
4e8690906c
@ -24,20 +24,25 @@ class ScriptSeed(scripts.ScriptBuiltin):
|
|||||||
|
|
||||||
def ui(self, is_img2img):
|
def ui(self, is_img2img):
|
||||||
with gr.Row(elem_id=self.elem_id("seed_row")):
|
with gr.Row(elem_id=self.elem_id("seed_row")):
|
||||||
if cmd_opts.use_textbox_seed:
|
with gr.Column(scale=1, min_width=205):
|
||||||
self.seed = gr.Textbox(label='Seed', value="", elem_id=self.elem_id("seed"))
|
with gr.Row():
|
||||||
else:
|
if cmd_opts.use_textbox_seed:
|
||||||
self.seed = gr.Number(label='Seed', value=-1, elem_id=self.elem_id("seed"), precision=0)
|
self.seed = gr.Textbox(label='Seed', value="", elem_id=self.elem_id("seed"), min_width=100)
|
||||||
|
else:
|
||||||
|
self.seed = gr.Number(label='Seed', value=-1, elem_id=self.elem_id("seed"), min_width=100, precision=0)
|
||||||
|
|
||||||
random_seed = ToolButton(ui.random_symbol, elem_id=self.elem_id("random_seed"), label='Random seed')
|
random_seed = ToolButton(ui.random_symbol, elem_id=self.elem_id("random_seed"), label='Random seed')
|
||||||
reuse_seed = ToolButton(ui.reuse_symbol, elem_id=self.elem_id("reuse_seed"), label='Reuse seed')
|
reuse_seed = ToolButton(ui.reuse_symbol, elem_id=self.elem_id("reuse_seed"), label='Reuse seed')
|
||||||
|
|
||||||
subseed = gr.Number(label='Variation seed', value=-1, elem_id=self.elem_id("subseed"), precision=0)
|
with gr.Column(scale=1, min_width=205):
|
||||||
|
with gr.Row():
|
||||||
|
subseed = gr.Number(label='Variation seed', value=-1, elem_id=self.elem_id("subseed"), min_width=100, precision=0)
|
||||||
|
|
||||||
random_subseed = ToolButton(ui.random_symbol, elem_id=self.elem_id("random_subseed"))
|
random_subseed = ToolButton(ui.random_symbol, elem_id=self.elem_id("random_subseed"))
|
||||||
reuse_subseed = ToolButton(ui.reuse_symbol, elem_id=self.elem_id("reuse_subseed"))
|
reuse_subseed = ToolButton(ui.reuse_symbol, elem_id=self.elem_id("reuse_subseed"))
|
||||||
|
|
||||||
subseed_strength = gr.Slider(label='Variation strength', value=0.0, minimum=0, maximum=1, step=0.01, elem_id=self.elem_id("subseed_strength"))
|
with gr.Column(scale=2, min_width=100):
|
||||||
|
subseed_strength = gr.Slider(label='Variation strength', value=0.0, minimum=0, maximum=1, step=0.01, elem_id=self.elem_id("subseed_strength"))
|
||||||
|
|
||||||
random_seed.click(fn=None, _js="function(){setRandomSeed('" + self.elem_id("seed") + "')}", show_progress=False, inputs=[], outputs=[])
|
random_seed.click(fn=None, _js="function(){setRandomSeed('" + self.elem_id("seed") + "')}", show_progress=False, inputs=[], outputs=[])
|
||||||
random_subseed.click(fn=None, _js="function(){setRandomSeed('" + self.elem_id("subseed") + "')}", show_progress=False, inputs=[], outputs=[])
|
random_subseed.click(fn=None, _js="function(){setRandomSeed('" + self.elem_id("subseed") + "')}", show_progress=False, inputs=[], outputs=[])
|
||||||
|
15
style.css
15
style.css
@ -222,21 +222,6 @@ div.block.gradio-accordion {
|
|||||||
padding: 0.1em 0.75em;
|
padding: 0.1em 0.75em;
|
||||||
}
|
}
|
||||||
|
|
||||||
[id$=_seed], [id$=_subseed]{
|
|
||||||
max-width: 10em;
|
|
||||||
}
|
|
||||||
|
|
||||||
[id$=_subseed_show]{
|
|
||||||
min-width: auto !important;
|
|
||||||
flex-grow: 0 !important;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
[id$=_subseed_show] .label-wrap{
|
|
||||||
margin: 0 0 0 0.5em;
|
|
||||||
align-self: end;
|
|
||||||
}
|
|
||||||
|
|
||||||
.html-log .comments{
|
.html-log .comments{
|
||||||
padding-top: 0.5em;
|
padding-top: 0.5em;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user