major update

this is going well after 5 days of no sleep
i decided to post the current state of the ui  still so much more work to do
This commit is contained in:
anapnoe
2023-02-11 10:25:08 +02:00
parent 222fec1013
commit b438b94612
52 changed files with 2302 additions and 1843 deletions
+8 -11
View File
@@ -280,19 +280,11 @@ onUiUpdate(function(){
/*
hack until gradio allows to add custom classes to components
add elem_id= your_elem_id + "sub-group"
/*
^ matches the start
* matches any position
$ matches the end
*/
gradioApp().querySelectorAll('[id $= "sub-group"]').forEach(function(elem){
elem.classList.add("sub-group");
})
*/
/* auto grow textarea */
gradioApp().querySelectorAll('[id $= "_prompt"] textarea').forEach(function (elem) {
@@ -302,11 +294,16 @@ onUiUpdate(function(){
e.target.style.minHeight = 'auto';
e.target.style.minHeight = e.target.scrollHeight + offset + 'px';
});
elem.addEventListener('focus', function (e) {
e.target.style.minHeight = 'auto';
e.target.style.minHeight = e.target.scrollHeight + offset + 'px';
});
});
/* resizable split view */
gradioApp().querySelectorAll('#txt2img_splitter, #img2img_splitter').forEach((elem) => {
gradioApp().querySelectorAll('[id $="2img_splitter"]').forEach((elem) => {
elem.addEventListener("mousedown", function(e) {