fix ctrl+up/down attention edit
fix dropdown obscured by live preview stylistic changes
This commit is contained in:
parent
8ea8e712c4
commit
46482decd5
@ -1,6 +1,6 @@
|
|||||||
function keyupEditAttention(event){
|
function keyupEditAttention(event){
|
||||||
let target = event.originalTarget || event.composedPath()[0];
|
let target = event.originalTarget || event.composedPath()[0];
|
||||||
if (!target.matches("[id*='_toprow'] textarea.gr-text-input[placeholder]")) return;
|
if (! target.matches("[id*='_toprow'] [id*='_prompt'] textarea")) return;
|
||||||
if (! (event.metaKey || event.ctrlKey)) return;
|
if (! (event.metaKey || event.ctrlKey)) return;
|
||||||
|
|
||||||
let isPlus = event.key == "ArrowUp"
|
let isPlus = event.key == "ArrowUp"
|
||||||
|
@ -587,7 +587,7 @@ def create_ui():
|
|||||||
txt2img_prompt.submit(**txt2img_args)
|
txt2img_prompt.submit(**txt2img_args)
|
||||||
submit.click(**txt2img_args)
|
submit.click(**txt2img_args)
|
||||||
|
|
||||||
res_switch_btn.click(lambda w, h: (h, w), inputs=[width, height], outputs=[width, height])
|
res_switch_btn.click(lambda w, h: (h, w), inputs=[width, height], outputs=[width, height], show_progress=False)
|
||||||
|
|
||||||
txt_prompt_img.change(
|
txt_prompt_img.change(
|
||||||
fn=modules.images.image_data,
|
fn=modules.images.image_data,
|
||||||
@ -907,7 +907,7 @@ def create_ui():
|
|||||||
|
|
||||||
img2img_prompt.submit(**img2img_args)
|
img2img_prompt.submit(**img2img_args)
|
||||||
submit.click(**img2img_args)
|
submit.click(**img2img_args)
|
||||||
res_switch_btn.click(lambda w, h: (h, w), inputs=[width, height], outputs=[width, height])
|
res_switch_btn.click(lambda w, h: (h, w), inputs=[width, height], outputs=[width, height], show_progress=False)
|
||||||
|
|
||||||
img2img_interrogate.click(
|
img2img_interrogate.click(
|
||||||
fn=lambda *args: process_interrogate(interrogate, *args),
|
fn=lambda *args: process_interrogate(interrogate, *args),
|
||||||
|
12
style.css
12
style.css
@ -1,9 +1,10 @@
|
|||||||
|
|
||||||
/* general gradio fixes */
|
/* general gradio fixes */
|
||||||
|
|
||||||
:root{
|
:root, .dark{
|
||||||
--checkbox-label-gap: 0.25em 0.1em;
|
--checkbox-label-gap: 0.25em 0.1em;
|
||||||
--section-header-text-size: 12pt;
|
--section-header-text-size: 12pt;
|
||||||
|
--block-background-fill: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block.padded{
|
.block.padded{
|
||||||
@ -54,6 +55,7 @@ div.compact{
|
|||||||
|
|
||||||
.gradio-dropdown ul.options{
|
.gradio-dropdown ul.options{
|
||||||
max-height: 35em;
|
max-height: 35em;
|
||||||
|
z-index: 3000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gradio-dropdown label span:not(.has-info){
|
.gradio-dropdown label span:not(.has-info){
|
||||||
@ -72,6 +74,13 @@ div.compact{
|
|||||||
margin: 0.75em 1.5em 0 0;
|
margin: 0.75em 1.5em 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gradio-html div.wrap{
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
div.gradio-html.min{
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* general styled components */
|
/* general styled components */
|
||||||
|
|
||||||
.gradio-button.tool{
|
.gradio-button.tool{
|
||||||
@ -103,6 +112,7 @@ div.compact{
|
|||||||
min-width: 0 !important;
|
min-width: 0 !important;
|
||||||
width: auto;
|
width: auto;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
top: -0.75em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block.token-counter span{
|
.block.token-counter span{
|
||||||
|
Loading…
Reference in New Issue
Block a user