From 78a178de9e8a500714581b545e6247b6bbbb3f84 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 16 Apr 2026 03:32:44 -0700 Subject: [PATCH] UI: Past chats menu improvement --- css/main.css | 1 + modules/chat.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/css/main.css b/css/main.css index 5d305550..8982b464 100644 --- a/css/main.css +++ b/css/main.css @@ -1103,6 +1103,7 @@ audio { padding: 0.75rem; font-size: 12.5px; font-weight: 400; + margin-right: 8px; } #past-chats .selected, diff --git a/modules/chat.py b/modules/chat.py index bbc0d7de..7ebffef4 100644 --- a/modules/chat.py +++ b/modules/chat.py @@ -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))