diff --git a/css/main.css b/css/main.css index 2a6f8715..13105bf0 100644 --- a/css/main.css +++ b/css/main.css @@ -97,11 +97,11 @@ ol li p, ul li p { display: inline-block; } -#chat-tab, #default-tab, #notebook-tab, #parameters, #chat-settings, #lora, #training-tab, #model-tab, #session-tab { +#chat-tab, #default-tab, #notebook-tab, #parameters, #chat-settings, #lora, #training-tab, #model-tab, #session-tab, #character-tab { border: 0; } -#default-tab, #notebook-tab, #parameters, #chat-settings, #lora, #training-tab, #model-tab, #session-tab { +#default-tab, #notebook-tab, #parameters, #chat-settings, #lora, #training-tab, #model-tab, #session-tab, #character-tab { padding: 1rem; } @@ -1658,6 +1658,7 @@ button:focus { height: calc(100vh - 231px) !important; } -#character-tab { - border: 0; +#instruction-template-str textarea, +#chat-template-str textarea { + height: calc(100vh - 300px) !important; } diff --git a/modules/ui_chat.py b/modules/ui_chat.py index 3ad59a40..d1447286 100644 --- a/modules/ui_chat.py +++ b/modules/ui_chat.py @@ -181,13 +181,13 @@ def create_chat_settings_ui(): with gr.Row(): with gr.Column(): - shared.gradio['instruction_template_str'] = gr.Textbox(value=shared.settings['instruction_template_str'], label='Instruction template', lines=24, info='This gets autodetected; you usually don\'t need to change it. Used in instruct and chat-instruct modes.', elem_classes=['add_scrollbar', 'monospace']) + shared.gradio['instruction_template_str'] = gr.Textbox(value=shared.settings['instruction_template_str'], label='Instruction template', lines=24, info='This gets autodetected; you usually don\'t need to change it. Used in instruct and chat-instruct modes.', elem_classes=['add_scrollbar', 'monospace'], elem_id='instruction-template-str') with gr.Row(): shared.gradio['send_instruction_to_default'] = gr.Button('Send to default', elem_classes=['small-button']) shared.gradio['send_instruction_to_notebook'] = gr.Button('Send to notebook', elem_classes=['small-button']) with gr.Column(): - shared.gradio['chat_template_str'] = gr.Textbox(value=shared.settings['chat_template_str'], label='Chat template', lines=22, elem_classes=['add_scrollbar', 'monospace'], info='Defines how the chat prompt in chat/chat-instruct modes is generated.') + shared.gradio['chat_template_str'] = gr.Textbox(value=shared.settings['chat_template_str'], label='Chat template', lines=22, elem_classes=['add_scrollbar', 'monospace'], info='Defines how the chat prompt in chat/chat-instruct modes is generated.', elem_id='chat-template-str') def create_event_handlers():