Closed Nyksia closed 8 months ago
With a bit more exploration, tracked it down specifically to .min.svelte style being applied to it, that sets its minimum height to var(--size-24)
What seems to happen is that the Token Counter gets queued. That happens with negative prompt box as well. If you do anything that takes some times to load, like merging models, and change anything in the prompt box, it will get queued for after the current ongoing task ends.
What seems to happen is that the Token Counter gets queued. That happens with negative prompt box as well. If you do anything that takes some times to load, like merging models, and change anything in the prompt box, it will get queued for after the current ongoing task ends.
Oh no that alone wouldn't be the problem. It is the fact that a style gets applied to the token counter CSS element, causing its minimum size to be too large and overlap with the prompt box that is the issue. Because using DevTools and disabling that size override allows to edit the prompts just fine. If anything, it seems like an oversight with how token counter has that size override during recalculation specifically.
A temporary workaround is to add the following rule to the user.css file:
.token-counter {
pointer-events: none;
}
Edited based on the comments below
A temporary workaround is to add the following rule to the user.css file:
Nice, I knew there was a way to do that, but I just didn't know which file I should be modifying to jury rig a fix.
So few things to note:
.token-counter {
pointer-events: none;
}
Using .token-counter class selector instead will make it apply to all token counters instead.
Is there an existing issue for this?
What happened?
When generating an image, if you edit the prompt and it attempts to recalculate the tokens, the token counter div element overlaps the entire text area, making it impossible to click into it. With some DevTools exploration, I've been able to find that it was specifically the token count div element that was doing it, as hiding it allows to click into the text box.
EDIT: Also the settings option to disable the token counters doesn't actually work.
Steps to reproduce the problem
What should have happened?
You should be able to click into the prompt text box and edit it even during the generation
Version or Commit where the problem happens
https://github.com/anapnoe/stable-diffusion-webui-ux/commit/3843d60ae7a692932db9be5ca33625382be32ee9
What Python version are you running on ?
Python 3.10.x
What platforms do you use to access the UI ?
Windows
What device are you running WebUI on?
Nvidia GPUs (RTX 20 above)
Cross attention optimization
xformers
What browsers do you use to access the UI ?
Microsoft Edge
Command Line Arguments
List of extensions
Console logs
Additional information
No response