v1.65修复图生图不能呼出翻译框的等bug Merge pull request #31 from thisjam/dev

v1.65修复图生图不能呼出翻译框的等bug
pull/36/merge
Six_GodK 2023-09-19 22:20:02 +08:00 committed by GitHub
commit 47e0836323
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 10 deletions

View File

@ -1,5 +1,4 @@

# sd-webui-oldsix_prompt v1.64
# sd-webui-oldsix_prompt v1.65
### 老版词库 @路过银河&网上收集
### 新词库由群里小伙伴 @麻瓜 @万碎爷 @元一斤 整理
### 100%完全自制插件不是魔改别人最近有个别up未均本人允许在多个平台打着nsfw词库的旗号拿本插件吸粉入群别人安装插件出问题又无法提供解决方案 ###
@ -12,7 +11,7 @@
---
* 特别鸣谢群里兄弟们的支持
<p> @六尘、@以及不愿意透露姓名的水友们</p>
<p> @鑫鑫、@六尘、@以及不愿意透露姓名的水友们</p>
* 插件已给一些公司、和个人都大大提升了效率有定制化插件、软件、APP、小程序的需求也可以单独联系我喜欢本插件的可以支持一下小弟
# <img src="imgs/wx.jpg" width="300" height="400" />
@ -27,7 +26,7 @@
* 左键输入正向提示框、 右键输入负向提示框
* 支持自定义词库
* 支持随机抽卡 【灵感模式、分类随机模式】
* 支持翻译、权重调整、位置调整。Alt+q键呼出隐藏面板
* 支持翻译、权重调整、位置调整。Alt+Q键呼出隐藏面板
* 支持动态随机提示词 本插件专属语法示例:#[red#blue#yellow] 或#[日常服饰]、 #[红色类#黄色类]
---
##### 展示1

View File

@ -774,6 +774,7 @@ function delLi(domli,cnkey){
elementprompt.value= elementprompt.value.replace(selectPrompts[cnkey].en+',','');
domli.parentNode.removeChild(domli)
delete selectPrompts[cnkey]
updateInput(elementprompt)
}
@ -810,7 +811,7 @@ function getCurrentPromptsEle(){
function initTrans() {
document.addEventListener('keydown', function (event) {
if (event.altKey && event.key === 'q') {
if (event.altKey && event.key.toLowerCase() === 'q') {
showTransUI();
}
@ -833,7 +834,7 @@ function showTransUI(){
}
if (imgdisplay === 'block') {
toggleDisplay(Elements.trans[0])
toggleDisplay(Elements.trans[1])
Elements.trans[1].querySelector('textarea').focus()
}
}

View File

@ -129,7 +129,7 @@ class Script(scripts.Script):
with gr.Row(elem_id=eid):
with gr.Accordion(label="SixGod_K提示词 v1.64",open=False):
gr.HTML('<a href="https://github.com/thisjam/sd-webui-oldsix-prompt/">【使用说明书】</a>')
gr.HTML('<a class="oldsix-tips" href="https://github.com/thisjam/sd-webui-oldsix-prompt/">【使用说明书】')
textarea=gr.TextArea(self.json,elem_id=tid,visible=False)
traninput=gr.Textbox(elem_classes="old-six-traninput",visible=False,show_label="",placeholder="输入中文后按回车翻译,[ALT+Q]键呼出/隐藏")

View File

@ -160,9 +160,8 @@
top:25%;
z-index: 99999!important;
min-height: 200px!important;
background: #00000094;
border-radius: 10px!important;
border-radius: 10px !important;
background: linear-gradient(to right, #76767a, #41444c)
}
.old-six-traninput textarea{
@ -213,6 +212,9 @@
cursor: grab;
box-shadow: 5px 5px 15px #741c1c;
overflow: hidden;
}
.oldsix-ul li:hover .alculate{
@ -256,6 +258,7 @@
}
.oldsix-ul li .content{
margin: 0 20px 0 5px;
color: #fff;
}
.oldsix-ul li .close{
@ -273,5 +276,9 @@
}
.oldsix-tips::after{
content: "[ALT+Q呼出翻译框]";
}