Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: tittle recent when no result found

Faisal Amirac6eda063a2d
diff --git a/web-app/src/containers/LeftPanel.tsx b/web-app/src/containers/LeftPanel.tsx
index a7be18576..1c91f610d 100644
--- a/web-app/src/containers/LeftPanel.tsx
+++ b/web-app/src/containers/LeftPanel.tsx
@@ -154,7 +154,6 @@ const LeftPanel = () => {
}
}, [setLeftPanel, open])
-
const currentPath = useRouterState({
select: (state) => state.location.pathname,
})
@@ -581,6 +580,10 @@ const LeftPanel = () => {
{filteredThreads.length === 0 && searchTerm.length > 0 && (
<div className="px-1 mt-2">
+ <span className="block text-xs text-left-panel-fg/50 px-1 font-semibold mb-2">
+ {t('common:recents')}
+ </span>
+
<div className="flex items-center gap-1 text-left-panel-fg/80">
<IconSearch size={18} />
<h6 className="font-medium text-base">