UI: Past chats menu improvement

This commit is contained in:
oobabooga 2026-04-16 03:32:44 -07:00
parent 21d4c17444
commit 78a178de9e
2 changed files with 4 additions and 3 deletions

View file

@ -1103,6 +1103,7 @@ audio {
padding: 0.75rem;
font-size: 12.5px;
font-weight: 400;
margin-right: 8px;
}
#past-chats .selected,

View file

@ -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))