Merge pull request #5 from LEv145/dev

Css change is hidden when the "Aspect Ratio" is changed. Buttons don't jump
This commit is contained in:
LEv145
2023-07-04 16:39:00 +02:00
committed by GitHub
2 changed files with 8 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ REVERSE_LOGIC_SYMBOL = "\U0001F503" # 🔃
ROUND_SYMBOL = "\U0001F50D" # 🔍
IMAGE_ROUNDING_MULTIPLIER = 4
is_reverse_logic_mode = False # Fixme: Global value
is_reverse_logic_mode = False # FIXME: Global value
class ResButton(ToolButton):
@@ -339,7 +339,7 @@ class AspectRatioScript(scripts.Script):
arc_desired_height = gr.Number(label="Height 2")
with gr.Column(min_width=150):
arc_ar_display = gr.Markdown(value="Aspect Ratio:")
arc_ar_display = gr.Markdown(value="Aspect Ratio:", elem_id="arc_ar_display_text")
with gr.Row(
elem_id=f'{"img" if is_img2img else "txt"}2img_arc_tool_buttons'
):

View File

@@ -28,3 +28,9 @@ button#arc_hide_logic_button {
min-width: unset !important;
padding: var(--size-0-5) var(--size-2) !important;
}
/* TODO: Use gradio instead */
#arc_ar_display_text {
height: 22px;
overflow: hidden !important;
}