mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
feat: make textboxes (incl. positive prompt) resizable again
This commit is contained in:
+4
-4
@@ -75,6 +75,10 @@ progress::after {
|
|||||||
width: 215px;
|
width: 215px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#positive_prompt textarea {
|
||||||
|
height: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
.type_row {
|
.type_row {
|
||||||
height: 80px !important;
|
height: 80px !important;
|
||||||
}
|
}
|
||||||
@@ -83,10 +87,6 @@ progress::after {
|
|||||||
height: 32px !important;
|
height: 32px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.scroll-hide{
|
|
||||||
resize: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.refresh_button {
|
.refresh_button {
|
||||||
border: none !important;
|
border: none !important;
|
||||||
background: none !important;
|
background: none !important;
|
||||||
|
|||||||
@@ -112,10 +112,10 @@ with shared.gradio_root:
|
|||||||
gallery = gr.Gallery(label='Gallery', show_label=False, object_fit='contain', visible=True, height=768,
|
gallery = gr.Gallery(label='Gallery', show_label=False, object_fit='contain', visible=True, height=768,
|
||||||
elem_classes=['resizable_area', 'main_view', 'final_gallery', 'image_gallery'],
|
elem_classes=['resizable_area', 'main_view', 'final_gallery', 'image_gallery'],
|
||||||
elem_id='final_gallery')
|
elem_id='final_gallery')
|
||||||
with gr.Row(elem_classes='type_row'):
|
with gr.Row():
|
||||||
with gr.Column(scale=17):
|
with gr.Column(scale=17):
|
||||||
prompt = gr.Textbox(show_label=False, placeholder="Type prompt here or paste parameters.", elem_id='positive_prompt',
|
prompt = gr.Textbox(show_label=False, placeholder="Type prompt here or paste parameters.", elem_id='positive_prompt',
|
||||||
container=False, autofocus=True, elem_classes='type_row', lines=1024)
|
container=False, autofocus=True, lines=1024)
|
||||||
|
|
||||||
default_prompt = modules.config.default_prompt
|
default_prompt = modules.config.default_prompt
|
||||||
if isinstance(default_prompt, str) and default_prompt != '':
|
if isinstance(default_prompt, str) and default_prompt != '':
|
||||||
|
|||||||
Reference in New Issue
Block a user