mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-20 22:13:43 +00:00
UI: Past chats menu improvement
This commit is contained in:
parent
21d4c17444
commit
78a178de9e
2 changed files with 4 additions and 3 deletions
|
|
@ -1103,6 +1103,7 @@ audio {
|
|||
padding: 0.75rem;
|
||||
font-size: 12.5px;
|
||||
font-weight: 400;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
#past-chats .selected,
|
||||
|
|
|
|||
|
|
@ -1736,9 +1736,9 @@ def find_all_histories_with_first_prompts(state):
|
|||
|
||||
first_prompt = first_prompt.strip()
|
||||
|
||||
# Truncate the first prompt if it's longer than 30 characters
|
||||
if len(first_prompt) > 30:
|
||||
first_prompt = first_prompt[:30 - 3] + '...'
|
||||
# Truncate the first prompt if it's longer than 28 characters
|
||||
if len(first_prompt) > 28:
|
||||
first_prompt = first_prompt[:28 - 3] + '...'
|
||||
|
||||
result.append((first_prompt, filename))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue