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) => ( + + ))} +
+
)}
)