diff --git a/scripts/image_browser.py b/scripts/image_browser.py index 453b374..34d0d2c 100644 --- a/scripts/image_browser.py +++ b/scripts/image_browser.py @@ -1197,14 +1197,14 @@ def create_tab(tab: ImageBrowserTab, current_gr_tab: gr.Tab): sort_order = ToolButton(value=down_symbol) with gr.Row() as filename_search_panel: 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(): 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) with gr.Row(elem_classes="exif-search-panel"): case_sensitive = gr.Checkbox(value=False, label="case sensitive") 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(): ranking_filter = gr.Radio(value="All", choices=["All", "1", "2", "3", "4", "5", "None", "Min-max"], label="Ranking filter", interactive=True) with gr.Row(): @@ -1215,7 +1215,7 @@ def create_tab(tab: ImageBrowserTab, current_gr_tab: gr.Tab): with gr.Row(): with gr.Column(): gr.HTML("

Choose Min-max to activate these controls

") - with gr.Blocks() as aesthetic_score_filter_panel: + with gr.Box() as aesthetic_score_filter_panel: with gr.Row(): aes_filter_min = gr.Textbox(value="", label="Minimum score") aes_filter_max = gr.Textbox(value="", label="Maximum score") diff --git a/style.css b/style.css index 17552ad..55b22ba 100644 --- a/style.css +++ b/style.css @@ -37,7 +37,6 @@ button[id$='_image_browser_del_img_btn'] { height: auto !important; } -#tab_image_browser .exif-search-panel, #tab_image_browser .no-gap-top { margin-top: calc(var(--layout-gap) * -1); } @@ -96,3 +95,7 @@ button[id$='_image_browser_del_img_btn'] { white-space: wrap; word-break: break-all; } + +#tab_image_browser .gradio-box { + padding: 5px !important; +}