lobehub / sd-webui-lobe-theme

🅰️ Lobe theme - The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.
https://github.com/AUTOMATIC1111/stable-diffusion-webui
GNU Affero General Public License v3.0
2.37k stars 222 forks source link

[Bug] Prompt Section with wrong highlights #449

Closed ExperienceRO closed 9 months ago

ExperienceRO commented 10 months ago

💻 系统环境 | Operating System

Windows

🌐 浏览器 | Browser

Microsoft Edge Ver. 118.0.2088.69 (Compilação oficial) (64 bits)

📦 SD Wbui 版本或提交 | Version or Commit

v1.6.0 - https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/5ef669de080814067961f28357256e8fe27544f4

📦 Lobe Theme 版本或提交 | Version or Commit

51acc6e7

🐛 问题描述 | Bug Description

Captura de tela 2023-10-26 093636

Whenever you need to select a part of the prompt, the part you're selecting is never the actual part being selected, because the highlighting is all wrong.

Captura de tela 2023-10-26 094201

Captura de tela 2023-10-26 094147

🚦 期望结果 | Expected Behavior

When you select a part of the promtp, this is the part that should be selected.

📷 复现步骤 | Recurrence Steps

Typing prompts and then selecting a part of the prompt to correct or delete or whatever.

📝 补充信息 | Additional Information

No response

sumeee commented 10 months ago

The bug description is very vague, but if this is the same issue I'm having, I can add some additional information:

For the following scenarios make sure Prompt Syntax Highlighting is turned on.

Scenario 1:

Add the following text (without quotes) into positive prompt and double click on middle of text2: "text1, text2, text3" Expected behavior: "text2" is highlighted. Actual behavior: "text2" is highlighted, so it works as intended. image

Scenario 2:

Make sure there is no text in the positive prompt, than add the following text and try to select text2: " text1, text2, text3" Notice that the text starts with two spaces. Expected behavior: "text2" is highlighted. Actual behavior: ", tex" is highlighted. Also the two spaces at the beginning of the text are not shown. image NOTE: in the above image the text is selected by click and drag; if the text is selected by double-click than it looks like this: image

ExperienceRO commented 9 months ago

Exactly!! In the example below, I've skipped a line, so the text is actually at the bottom and there's nothing on the top line where the highlight is. image

image

image

The bug description is very vague, but if this is the same issue I'm having, I can add some additional information:

For the following scenarios make sure Prompt Syntax Highlighting is turned on.

Scenario 1:

Add the following text (without quotes) into positive prompt and double click on middle of text2: "text1, text2, text3" Expected behavior: "text2" is highlighted. Actual behavior: "text2" is highlighted, so it works as intended. image

Scenario 2:

Make sure there is no text in the positive prompt, than add the following text and try to select text2: " text1, text2, text3" Notice that the text starts with two spaces. Expected behavior: "text2" is highlighted. Actual behavior: ", tex" is highlighted. Also the two spaces at the beginning of the text are not shown. image NOTE: in the above image the text is selected by click and drag; if the text is selected by double-click than it looks like this: image

Mozoloa commented 9 months ago

I can add to this, it looks like it's not taking the formatting into account, here it highlights a non bold version of what's actually in the loras, this glitch has been plaguing my experience for months

https://github.com/lobehub/sd-webui-lobe-theme/assets/20817233/1393eaa4-b03a-4b24-9547-266a587ecd1a

ExperienceRO commented 9 months ago

Worst is, that should be something easy to fix, it's some CSS issue I guess...

lobehubbot commented 9 months ago

✅ @ExperienceRO

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。