easydiffusion/ui/media/js
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
..
auto-save.js Slider for preview image size (#767) 2023-02-22 19:32:00 +05:30
dnd.js Fix the restoration of the inpainting toggle 2023-02-22 23:46:07 -08:00
engine.js NSFW filter setting 2023-02-18 15:01:13 +05:30
image-editor.js Fix the centering of sharpness brushes 2023-02-19 12:08:06 -08:00
image-modifiers.js Preserve full names for shortened modifiers (#945) 2023-02-28 14:42:24 +05:30
jquery-3.6.1.min.js Refactor the CSS and JS into separate files, attempt 1 2022-10-18 20:18:56 +05:30
jquery-confirm.min.js Confirm 'Clear All' and 'Stop Task' 2022-11-22 21:27:36 +01:00
main.js fix for thumbnail slider 2023-02-22 22:05:16 +01:00
marked.min.js Add a 'What's New?' tab as a core plugin, which fetches the contents of CHANGES.md from the app's release branch 2022-11-16 16:54:28 +05:30
parameters.js Change the image zoom size if the textbox is edited next to the slider 2023-02-22 19:56:45 +05:30
plugins.js Support WEBP outputs 2023-02-18 22:37:34 -05:00
searchable-models.js Merge pull request #933 from patriceac/patch-43 2023-02-28 14:41:04 +05:30
themes.js fixed theme css properties not being updated properly 2022-12-21 16:03:52 -08:00
utils.js 'Download all images' button (#765) 2023-02-14 19:33:25 +05:30