fix: tittle recent when no result found

This commit is contained in:
Faisal Amir 2025-10-06 11:35:27 +07:00
parent 80ee8fd2b2
commit ac6eda063a

View File

@ -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">