Merge pull request #6744 from menloresearch/fix/no-result-found
fix: title recent when no result found
This commit is contained in:
commit
cc77ae3430
@ -154,7 +154,6 @@ const LeftPanel = () => {
|
|||||||
}
|
}
|
||||||
}, [setLeftPanel, open])
|
}, [setLeftPanel, open])
|
||||||
|
|
||||||
|
|
||||||
const currentPath = useRouterState({
|
const currentPath = useRouterState({
|
||||||
select: (state) => state.location.pathname,
|
select: (state) => state.location.pathname,
|
||||||
})
|
})
|
||||||
@ -581,6 +580,10 @@ const LeftPanel = () => {
|
|||||||
|
|
||||||
{filteredThreads.length === 0 && searchTerm.length > 0 && (
|
{filteredThreads.length === 0 && searchTerm.length > 0 && (
|
||||||
<div className="px-1 mt-2">
|
<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">
|
<div className="flex items-center gap-1 text-left-panel-fg/80">
|
||||||
<IconSearch size={18} />
|
<IconSearch size={18} />
|
||||||
<h6 className="font-medium text-base">
|
<h6 className="font-medium text-base">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user