From c4510663ca1e2a811568126c2a712fb176e21b5a Mon Sep 17 00:00:00 2001 From: DominikDoom Date: Sat, 12 Jul 2025 20:13:07 +0200 Subject: [PATCH 1/2] Fix lora / embed preview being below the textbox This was a small visual regression for the normal webui introduced by #327 Should keep the fix working for forge --- javascript/tagAutocomplete.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index 4a23ea9..39b4a5a 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -31,7 +31,8 @@ const autocompleteCSS = ` position: absolute; z-index: 999; max-width: calc(100% - 1.5rem); - flex-direction: column; /* Ensure children stack vertically */ + flex-wrap: wrap; + gap: 10px; } .autocompleteResults { background-color: var(--results-bg) !important; @@ -49,7 +50,6 @@ const autocompleteCSS = ` .sideInfo { display: none; position: relative; - margin-left: 10px; height: 18rem; max-width: 16rem; } From 89fee277e30f50de1d6fe8ee56ed4ea2cabb1796 Mon Sep 17 00:00:00 2001 From: DominikDoom Date: Tue, 9 Sep 2025 10:04:00 +0200 Subject: [PATCH 2/2] Fix model path breaking with commas in filenames Fixes #332 --- scripts/tag_autocomplete_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/tag_autocomplete_helper.py b/scripts/tag_autocomplete_helper.py index 77945ee..30aefbb 100644 --- a/scripts/tag_autocomplete_helper.py +++ b/scripts/tag_autocomplete_helper.py @@ -98,9 +98,9 @@ def sort_models(model_list, sort_method = None, name_has_subpath = False): # During merging on the JS side we need to re-sort anyway, so here only the sort criteria are calculated. # The list itself doesn't need to get sorted at this point. if len(model_list[0]) > 2: - results = [f'{name},"{sorter(path, name, name_has_subpath)}",{meta}' for path, name, meta in model_list] + results = [f'"{name}","{sorter(path, name, name_has_subpath)}",{meta}' for path, name, meta in model_list] else: - results = [f'{name},"{sorter(path, name, name_has_subpath)}"' for path, name in model_list] + results = [f'"{name}","{sorter(path, name, name_has_subpath)}"' for path, name in model_list] return results