Changed Blocks to Box, due to issue with visibility flag, #229
parent
74ad7d57ff
commit
f715f7ae70
|
|
@ -1197,14 +1197,14 @@ def create_tab(tab: ImageBrowserTab, current_gr_tab: gr.Tab):
|
||||||
sort_order = ToolButton(value=down_symbol)
|
sort_order = ToolButton(value=down_symbol)
|
||||||
with gr.Row() as filename_search_panel:
|
with gr.Row() as filename_search_panel:
|
||||||
filename_keyword_search = gr.Textbox(value="", label="Filename keyword search")
|
filename_keyword_search = gr.Textbox(value="", label="Filename keyword search")
|
||||||
with gr.Blocks() as exif_search_panel:
|
with gr.Box() as exif_search_panel:
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
exif_keyword_search = gr.Textbox(value="", label="EXIF keyword search")
|
exif_keyword_search = gr.Textbox(value="", label="EXIF keyword search")
|
||||||
negative_prompt_search = gr.Radio(value="No", choices=["No", "Yes", "Only"], label="Search negative prompt", interactive=True)
|
negative_prompt_search = gr.Radio(value="No", choices=["No", "Yes", "Only"], label="Search negative prompt", interactive=True)
|
||||||
with gr.Row(elem_classes="exif-search-panel"):
|
with gr.Row(elem_classes="exif-search-panel"):
|
||||||
case_sensitive = gr.Checkbox(value=False, label="case sensitive")
|
case_sensitive = gr.Checkbox(value=False, label="case sensitive")
|
||||||
use_regex = gr.Checkbox(value=False, label=r"regex - e.g. ^(?!.*Hires).*$")
|
use_regex = gr.Checkbox(value=False, label=r"regex - e.g. ^(?!.*Hires).*$")
|
||||||
with gr.Blocks() as ranking_filter_panel:
|
with gr.Box() as ranking_filter_panel:
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
ranking_filter = gr.Radio(value="All", choices=["All", "1", "2", "3", "4", "5", "None", "Min-max"], label="Ranking filter", interactive=True)
|
ranking_filter = gr.Radio(value="All", choices=["All", "1", "2", "3", "4", "5", "None", "Min-max"], label="Ranking filter", interactive=True)
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
|
|
@ -1215,7 +1215,7 @@ def create_tab(tab: ImageBrowserTab, current_gr_tab: gr.Tab):
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
with gr.Column():
|
with gr.Column():
|
||||||
gr.HTML("<p class='no-gap-top mb-0 text-subdued'>Choose Min-max to activate these controls<p>")
|
gr.HTML("<p class='no-gap-top mb-0 text-subdued'>Choose Min-max to activate these controls<p>")
|
||||||
with gr.Blocks() as aesthetic_score_filter_panel:
|
with gr.Box() as aesthetic_score_filter_panel:
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
aes_filter_min = gr.Textbox(value="", label="Minimum score")
|
aes_filter_min = gr.Textbox(value="", label="Minimum score")
|
||||||
aes_filter_max = gr.Textbox(value="", label="Maximum score")
|
aes_filter_max = gr.Textbox(value="", label="Maximum score")
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@ button[id$='_image_browser_del_img_btn'] {
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tab_image_browser .exif-search-panel,
|
|
||||||
#tab_image_browser .no-gap-top {
|
#tab_image_browser .no-gap-top {
|
||||||
margin-top: calc(var(--layout-gap) * -1);
|
margin-top: calc(var(--layout-gap) * -1);
|
||||||
}
|
}
|
||||||
|
|
@ -96,3 +95,7 @@ button[id$='_image_browser_del_img_btn'] {
|
||||||
white-space: wrap;
|
white-space: wrap;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#tab_image_browser .gradio-box {
|
||||||
|
padding: 5px !important;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue