mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-01-26 19:29:56 +00:00
Optimize the original copy-and-paste function
Former-commit-id: aef3f80b1f8bfdc72cb2c90d11e81b587a36d666
This commit is contained in:
@@ -1 +1 @@
|
||||
efbc75dabd6bab17f2ba59fc283724032614163f
|
||||
b7316035292a86d3af6a73096cd4e37016f2653c
|
||||
@@ -1 +1 @@
|
||||
899b2d6bb1d7b8a2854b7d86b0ab32f5fde08c2b
|
||||
11bd350050c74c0ef0158d0047c38cc1b56c65d4
|
||||
@@ -420,7 +420,7 @@ export default {
|
||||
this.startWatchSave = true
|
||||
})
|
||||
|
||||
// this.handlePaste()
|
||||
this.handlePaste()
|
||||
|
||||
// todo: test
|
||||
// this.$refs.translateSetting.open(this.translateApi)
|
||||
@@ -473,10 +473,11 @@ export default {
|
||||
// 拷贝一个新的按钮
|
||||
const $pasteNew = $paste.cloneNode(true)
|
||||
$pasteNew.id = 'paste-new-' + index
|
||||
$pasteNew.innerHTML = '🗒'
|
||||
// 加到原来的按钮后面一个
|
||||
$paste.parentNode.insertBefore($pasteNew, $paste.nextSibling)
|
||||
// 原来的按钮隐藏
|
||||
$paste.style.display = 'none'
|
||||
// $paste.style.display = 'none'
|
||||
// 监听新按钮点击事件
|
||||
$pasteNew.addEventListener('click', () => {
|
||||
this.pasteBtn = $paste
|
||||
|
||||
@@ -1 +1 @@
|
||||
1a96497ffa44d7036214e8f7fcaf7e5140dea478
|
||||
5f9755d8612f00ebedd0c89b8ee86578069a2384
|
||||
@@ -329,6 +329,7 @@
|
||||
min-width: 200px;
|
||||
width: 80%;
|
||||
text-align: left;
|
||||
resize: none;
|
||||
|
||||
&:focus {
|
||||
box-shadow: var(--input-shadow-focus) !important;
|
||||
|
||||
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