[PR #327] [MERGED] Fix SDNext ModernUI by following the cursor #302

Closed
opened 2026-10-30 21:22:10 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/pull/327
Author: @Disty0
Created: 5/5/2025
Status: ✅ Merged
Merged: 5/5/2025
Merged by: @DominikDoom

Base: main ← Head: main


📝 Commits (3)

📊 Changes

3 files changed (+19 additions, -6 deletions)

View changed files

📝 javascript/tagAutocomplete.js (+7 -4)
📝 scripts/shared_paths.py (+4 -1)
📝 scripts/tag_autocomplete_helper.py (+8 -1)

📄 Description

Tagcomplete extension puts the result box below the prompt box. This works with the old UI but this causes the results box to be on top of the prompt box on ModernUI as seen in the example. This PR fixes this issue by making the result box follow the cursor.

This PR is based on the SDNext fix repo with additional scroll check so the result box won't disappear into the abyss if we scroll down in the text box and done more cleanups on the SDNext fix repo so it won't do unnecessary code changes.

Second fix is for the wildcards dir. SDNext allows users to change the wildcards dir and sets the default to models/wildcards instead of scripts/wildcards. This PR adds a fix for this too.

Example of the prompt box covering the prompts:

Screenshot From 2025-05-05 20-16-17

Prompt box looks like this after this PR:

Screenshot From 2025-05-05 20-14-21

Also this new behavior continues in the old UI too. Results box now follows the cursor on the old UI too:

Screenshot From 2025-05-05 20-11-03


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/pull/327 **Author:** [@Disty0](https://github.com/Disty0) **Created:** 5/5/2025 **Status:** ✅ Merged **Merged:** 5/5/2025 **Merged by:** [@DominikDoom](https://github.com/DominikDoom) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`062fea7`](https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/commit/062fea7c13d3e068d440bb27e19d5457584c625f) Cherrypick and cleanup SDNext fixes - [`e831fb4`](https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/commit/e831fb4510d417b4a72949746d61124fba2ba28f) Check for scroll too - [`1d67e0c`](https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/commit/1d67e0cd4c75f01c140cacc3991f4852c1177480) Fix wildcards path ### 📊 Changes **3 files changed** (+19 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `javascript/tagAutocomplete.js` (+7 -4) 📝 `scripts/shared_paths.py` (+4 -1) 📝 `scripts/tag_autocomplete_helper.py` (+8 -1) </details> ### 📄 Description Tagcomplete extension puts the result box below the prompt box. This works with the old UI but this causes the results box to be on top of the prompt box on ModernUI as seen in the example. This PR fixes this issue by making the result box follow the cursor. This PR is based on the [SDNext fix repo](https://github.com/Nyx01/SDNext_AutocompleteFix) with additional scroll check so the result box won't disappear into the abyss if we scroll down in the text box and done more cleanups on the SDNext fix repo so it won't do unnecessary code changes. Second fix is for the wildcards dir. SDNext allows users to change the wildcards dir and sets the default to `models/wildcards` instead of `scripts/wildcards`. This PR adds a fix for this too. Example of the prompt box covering the prompts: ![Screenshot From 2025-05-05 20-16-17](https://github.com/user-attachments/assets/dbfef4bc-dec4-4006-a3c2-b0375a663b89) Prompt box looks like this after this PR: ![Screenshot From 2025-05-05 20-14-21](https://github.com/user-attachments/assets/589ef8bb-5324-4438-944a-5e63cfe02c6f) Also this new behavior continues in the old UI too. Results box now follows the cursor on the old UI too: ![Screenshot From 2025-05-05 20-11-03](https://github.com/user-attachments/assets/1883cfcb-2c75-4f48-ae0e-2d896fabc619) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-30 21:22:10 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DominikDoom/a1111-sd-webui-tagcomplete#302
No description provided.