From d5fe6bb33e24bc3e69f2d662346ea20c1087db16 Mon Sep 17 00:00:00 2001 From: yangdx Date: Fri, 26 Sep 2025 10:27:03 +0800 Subject: [PATCH] Increase user prompt history capacity and dropdown height MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • History limit: 8 → 12 items • Dropdown height: max-h-60 → max-h-96 • Better visibility for longer prompts • Improved user experience --- .../src/components/ui/UserPromptInputWithHistory.tsx | 2 +- lightrag_webui/src/stores/settings.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx b/lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx index 060f9060..a4e45da8 100644 --- a/lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx +++ b/lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx @@ -165,7 +165,7 @@ export default function UserPromptInputWithHistory({ {/* Dropdown */} {isOpen && history.length > 0 && ( -
+
{history.map((prompt, index) => (
()( // Add to beginning newHistory.unshift(prompt) - // Keep only last 8 items - if (newHistory.length > 8) { - newHistory.splice(8) + // Keep only last 12 items + if (newHistory.length > 12) { + newHistory.splice(12) } return { userPromptHistory: newHistory }