mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-04 15:50:26 +01:00
Increase the area of the notebook textbox
This commit is contained in:
parent
7cb2b1bfdb
commit
2f45d75309
|
|
@ -175,7 +175,7 @@ gradio-app > :first-child {
|
|||
}
|
||||
|
||||
.textbox textarea {
|
||||
height: calc(100dvh - 172px);
|
||||
height: calc(100dvh - 145px)
|
||||
}
|
||||
|
||||
.textbox_logits textarea {
|
||||
|
|
@ -307,7 +307,7 @@ audio {
|
|||
}
|
||||
|
||||
#notebook-token-counter {
|
||||
top: calc(100dvh - 171px) !important;
|
||||
top: calc(100dvh - 172px) !important;
|
||||
}
|
||||
|
||||
#default-token-counter span, #notebook-token-counter span {
|
||||
|
|
@ -1666,3 +1666,7 @@ button:focus {
|
|||
height: calc(100vh - 300px) !important;
|
||||
min-height: 90px !important;
|
||||
}
|
||||
|
||||
#textbox-notebook span {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ def create_ui():
|
|||
with gr.Tab('Raw'):
|
||||
with gr.Row():
|
||||
initial_text = load_prompt(shared.settings['prompt-notebook'])
|
||||
shared.gradio['textbox-notebook'] = gr.Textbox(value=initial_text, lines=27, elem_id='textbox-notebook', elem_classes=['textbox', 'add_scrollbar'])
|
||||
shared.gradio['textbox-notebook'] = gr.Textbox(label="", value=initial_text, lines=27, elem_id='textbox-notebook', elem_classes=['textbox', 'add_scrollbar'])
|
||||
shared.gradio['token-counter-notebook'] = gr.HTML(value="<span>0</span>", elem_id="notebook-token-counter")
|
||||
|
||||
with gr.Tab('Markdown'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue