easydiffusion/ui
patriceac 0e57487774
Preserve full names for shortened modifiers (#945)
* Preserve full names for shortened modifiers

The PR https://github.com/cmdr2/stable-diffusion-ui/pull/779/files added code to preserve the full names of truncated image modifiers, but only in the "short image modifiers" code path. This PR fixes that by preserving the full car name for truncated modifier names too.

* Pick the full modifier name

The previous code selected the entire innerText from the modifier-car-label element, but for truncated modifiers this would also include the tooltip text. This modification fixes that by only picking specifically the full modifier name.

* Only pick the full modifier name

Previous code would pick up the tooltip text too, causing a mismatch of strings in the comparison.

* Display the truncated image modifier names

What we process and compare is always the full image modifier string, but we still want to display a shortened string when applicable.
2023-02-28 14:42:24 +05:30
..
easydiffusion Merge pull request #916 from JeLuF/skipst 2023-02-21 08:39:52 +05:30
hotfix Hotfix for broken openAI dependency - bad json file 2022-09-10 00:13:16 +05:30
media Preserve full names for shortened modifiers (#945) 2023-02-28 14:42:24 +05:30
plugins/ui Keep the min-width of a dropdown equal to the width of the input element 2023-02-24 20:08:19 +05:30
index.html Shrink the preview tools buttons to icons-only on a small screen 2023-02-24 21:50:21 +05:30
main.py Refactor server.py 2022-12-24 15:29:49 +05:30
modifiers.json Support for longer labels 2022-09-23 00:05:05 +03:00