compact-checkbox-group

This commit is contained in:
w-e-w 2024-04-26 18:47:04 +09:00
parent e85e327ae0
commit d5f6fdb3c4
2 changed files with 8 additions and 4 deletions

View File

@ -604,12 +604,12 @@ def create_ui():
install_extension_button = gr.Button(elem_id="install_extension_button", visible=False) install_extension_button = gr.Button(elem_id="install_extension_button", visible=False)
with gr.Row(): with gr.Row():
selected_tags = gr.CheckboxGroup(value=["ads", "localization", "installed"], label="Extension tags", choices=["script", "ads", "localization", "installed"]) selected_tags = gr.CheckboxGroup(value=["ads", "localization", "installed"], label="Extension tags", choices=["script", "ads", "localization", "installed"], elem_classes=['compact-checkbox-group'])
sort_column = gr.Radio(value="newest first", label="Order", choices=["newest first", "oldest first", "a-z", "z-a", "internal order",'update time', 'create time', "stars"], type="index") sort_column = gr.Radio(value="newest first", label="Order", choices=["newest first", "oldest first", "a-z", "z-a", "internal order",'update time', 'create time', "stars"], type="index", elem_classes=['compact-checkbox-group'])
with gr.Row(): with gr.Row():
showing_type = gr.Radio(value="hide", label="Showing type", choices=["hide", "show"]) showing_type = gr.Radio(value="hide", label="Showing type", choices=["hide", "show"], elem_classes=['compact-checkbox-group'])
filtering_type = gr.Radio(value="or", label="Filtering type", choices=["or", "and"]) filtering_type = gr.Radio(value="or", label="Filtering type", choices=["or", "and"], elem_classes=['compact-checkbox-group'])
with gr.Row(): with gr.Row():
search_extensions_text = gr.Text(label="Search", container=False) search_extensions_text = gr.Text(label="Search", container=False)

View File

@ -854,6 +854,10 @@ table.popup-table .link{
display: inline-block; display: inline-block;
} }
.compact-checkbox-group div label {
padding: 0.1em 0.3em !important;
}
/* extensions tab table row hover highlight */ /* extensions tab table row hover highlight */
#extensions tr:hover td, #extensions tr:hover td,