Removed double empty line on hidden items

This is a quick fix, needs more careful consideration
This commit is contained in:
Alex Heller
2023-05-01 04:41:29 +02:00
parent 2d82bc67d4
commit 074c924052
2 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -1214,7 +1214,9 @@ def create_ui():
elem_id = "setting_"+key
if not is_quicksettings:
dirtyable_setting = gr.Group(elem_classes="dirtyable")
# FIXME: the visibility is only copied once initially, so if the user changes it, it won't be updated
# This can probably be fixed by using a proper wrapper element
dirtyable_setting = gr.Group(elem_classes="dirtyable", visible=(args or {}).get("visible", True))
dirtyable_setting.__enter__()
dirty_indicator = gr.Button(
"",
+4
View File
@@ -250,6 +250,10 @@ div#extras_scale_to_tab div.form{
gap: .5em;
}
#settings .dirtyable.hidden {
display: none;
}
#settings .modification-indicator {
width: 100%;
height: 100%;