mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-04-30 19:21:43 +00:00
Optimize feature #54
Former-commit-id: 7aa0d35e63d4fdb57e4ea3bf0f085fdde947915e
This commit is contained in:
@@ -1 +1 @@
|
||||
7586333151914088f7eb740dbedda22e6ed9aac3
|
||||
bddf75b83abbfd76a321242524bae7b3db4ff1a7
|
||||
@@ -1 +1 @@
|
||||
0a93919c189c6b4a996542fb802b7c9198c00514
|
||||
9d6061fe1fc1a74f4cc92ab7657129bf3c625cb1
|
||||
@@ -1 +1 @@
|
||||
1616fc1a1d3c8fcd5501496d8989546f8dde0083
|
||||
293f7a90f1dd72356784374d803efc48c09682a5
|
||||
@@ -472,5 +472,19 @@ export default {
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 交换元素
|
||||
* @param ele1 {Element}
|
||||
* @param ele2 {Element}
|
||||
*/
|
||||
swapElement(ele1, ele2) {
|
||||
let parent1 = ele1.parentNode
|
||||
let parent2 = ele2.parentNode
|
||||
let next1 = ele1.nextSibling
|
||||
let next2 = ele2.nextSibling
|
||||
parent1.insertBefore(ele2, next1)
|
||||
parent2.insertBefore(ele1, next2)
|
||||
},
|
||||
}
|
||||
10
styles/extensions/ line-breaks-new-line/manifest.json
Normal file
10
styles/extensions/ line-breaks-new-line/manifest.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "The interface displays line breaks as a new line",
|
||||
"i18n": {
|
||||
"zh_CN": "\u754C\u9762\u4E2D\u201C\u6362\u884C\u7B26\u53F7\u201D\u6362\u884C\u663E\u793A",
|
||||
"zh_HK": "\u754C\u9762\u4E2D\u300C\u63DB\u884C\u7B26\u865F\u300D\u63DB\u884C\u986F\u793A",
|
||||
"zh_TW": "\u4ECB\u9762\u4E2D\u300C\u63DB\u884C\u7B26\u865F\u300D\u63DB\u884C\u986F\u793A"
|
||||
},
|
||||
"author": "Physton",
|
||||
"type": "enhance"
|
||||
}
|
||||
5
styles/extensions/ line-breaks-new-line/style.less
Normal file
5
styles/extensions/ line-breaks-new-line/style.less
Normal file
@@ -0,0 +1,5 @@
|
||||
.physton-prompt {
|
||||
.prompt-wrap.wrap-tag {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
1
styles/extensions/ line-breaks-new-line/style.min.css
vendored
Normal file
1
styles/extensions/ line-breaks-new-line/style.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.physton-prompt .prompt-wrap.wrap-tag{display:block!important}
|
||||
@@ -483,10 +483,10 @@
|
||||
|
||||
.prompt-wrap {
|
||||
display: none;
|
||||
//flex-basis: 100%;
|
||||
//height: 0;
|
||||
//margin: 0;
|
||||
//padding: 0;
|
||||
flex-basis: 100%;
|
||||
height: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.prompt-tag {
|
||||
|
||||
2
styles/main.min.css
vendored
2
styles/main.min.css
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user