[PR #355] [MERGED] [fix] 解决一个可能导致启动失败的问题 & 解决firefox下提示词框体显示问题的样式方案 #357

Closed
opened 2026-11-07 17:43:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Physton/sd-webui-prompt-all-in-one/pull/355
Author: @PTCMode
Created: 12/13/2024
Status: ✅ Merged
Merged: 12/14/2024
Merged by: @Physton

Base: main ← Head: main


📝 Commits (2)

  • 31fef02 [fix] 添加一个临时解决firefox下提示词显示问题的样式方案
  • 2938717 [fix] 修复一个由于遗留锁导致UI加载可能会失败的问题

📊 Changes

11 files changed (+138 additions, -102 deletions)

View changed files

📝 scripts/on_app_started.py (+11 -12)
📝 scripts/physton_prompt/get_lang.py (+1 -3)
📝 scripts/physton_prompt/get_translate_apis.py (+2 -5)
📝 scripts/physton_prompt/history.py (+4 -5)
📝 scripts/physton_prompt/storage.py (+82 -71)
📝 scripts/physton_prompt/styles.py (+1 -2)
➕ styles/extensions/firefox-fix/manifest.json (+8 -0)
➕ styles/extensions/firefox-fix/style.less (+26 -0)
➕ styles/extensions/firefox-fix/style.min.css (+1 -0)
📝 tests/privacy_api_config.py (+1 -2)
📝 tests/translate.py (+1 -2)

📄 Description

由于插件启动时Storage类会写存储文件,如果文件锁由于某些原因没有被删除时,会永远等待锁释放导致启动失败。
所以在Storage类初始化时尝试查找并删除遗留的锁,并将Storage类转换为全局类,防止多次删除遗留锁

firefox下提示词框体显示问题:
图片

使用修复样式后:
图片


🔄 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/Physton/sd-webui-prompt-all-in-one/pull/355 **Author:** [@PTCMode](https://github.com/PTCMode) **Created:** 12/13/2024 **Status:** ✅ Merged **Merged:** 12/14/2024 **Merged by:** [@Physton](https://github.com/Physton) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`31fef02`](https://github.com/Physton/sd-webui-prompt-all-in-one/commit/31fef02d6b942d484ed6ea6ad45b7a9ca9991b6a) [fix] 添加一个临时解决firefox下提示词显示问题的样式方案 - [`2938717`](https://github.com/Physton/sd-webui-prompt-all-in-one/commit/29387173152539a609bc6a5d8cf960bcc9b2ddad) [fix] 修复一个由于遗留锁导致UI加载可能会失败的问题 ### 📊 Changes **11 files changed** (+138 additions, -102 deletions) <details> <summary>View changed files</summary> 📝 `scripts/on_app_started.py` (+11 -12) 📝 `scripts/physton_prompt/get_lang.py` (+1 -3) 📝 `scripts/physton_prompt/get_translate_apis.py` (+2 -5) 📝 `scripts/physton_prompt/history.py` (+4 -5) 📝 `scripts/physton_prompt/storage.py` (+82 -71) 📝 `scripts/physton_prompt/styles.py` (+1 -2) ➕ `styles/extensions/firefox-fix/manifest.json` (+8 -0) ➕ `styles/extensions/firefox-fix/style.less` (+26 -0) ➕ `styles/extensions/firefox-fix/style.min.css` (+1 -0) 📝 `tests/privacy_api_config.py` (+1 -2) 📝 `tests/translate.py` (+1 -2) </details> ### 📄 Description 由于插件启动时Storage类会写存储文件,如果文件锁由于某些原因没有被删除时,会永远等待锁释放导致启动失败。 所以在Storage类初始化时尝试查找并删除遗留的锁,并将Storage类转换为全局类,防止多次删除遗留锁 firefox下提示词框体显示问题: ![图片](https://github.com/user-attachments/assets/a030bd68-4ca9-40bd-903c-1d860840524c) 使用修复样式后: ![图片](https://github.com/user-attachments/assets/fcba6e34-4857-4655-8e7e-a60a24b91eca) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:43:44 +07:00
Sign in to join this conversation.
No labels
pull-request
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
Physton/sd-webui-prompt-all-in-one#357
No description provided.