wip: auto-resize positive prompt on new line

dirty approach as container is hidden and 1px padding is applied for border shadow to actually work
This commit is contained in:
Manuel Schmid
2024-06-02 01:50:42 +02:00
parent 50deba85e7
commit 6e555fa35a
3 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ with shared.gradio_root:
with gr.Row():
with gr.Column(scale=17):
prompt = gr.Textbox(show_label=False, placeholder="Type prompt here or paste parameters.", elem_id='positive_prompt',
container=False, autofocus=True, lines=1024)
autofocus=True, lines=3)
default_prompt = modules.config.default_prompt
if isinstance(default_prompt, str) and default_prompt != '':