From 61a57108a2846631c6c17337524fd7d23c333f58 Mon Sep 17 00:00:00 2001 From: Bruno Bergher Date: Thu, 13 Nov 2025 16:02:25 +0000 Subject: [PATCH] Handles long lists of tasks in the home page --- .../src/components/history/HistoryPreview.tsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/webview-ui/src/components/history/HistoryPreview.tsx b/webview-ui/src/components/history/HistoryPreview.tsx index 1dd9301585..6bbe48f44a 100644 --- a/webview-ui/src/components/history/HistoryPreview.tsx +++ b/webview-ui/src/components/history/HistoryPreview.tsx @@ -10,7 +10,9 @@ import TaskItem from "./TaskItem" const HistoryPreview = () => { const { tasks } = useTaskSearch() const { t } = useAppTranslation() - const { maxTasksHomeScreen } = useExtensionState() + let { maxTasksHomeScreen } = useExtensionState() + + maxTasksHomeScreen = 100 const handleViewAllHistory = () => { vscode.postMessage({ type: "switchTab", tab: "history" }) @@ -22,7 +24,7 @@ const HistoryPreview = () => { } return ( -
+

{t("history:recentTasks")}

{tasks.length !== 0 && ( - <> - {tasks.slice(0, maxTasksHomeScreen).map((item) => ( - - ))} - +
+
+
+ {tasks.slice(0, maxTasksHomeScreen).map((item) => ( + + ))} +
+
)}
)