Merge pull request #6744 from menloresearch/fix/no-result-found

fix: title recent when no result found
This commit is contained in:
Faisal Amir 2025-10-06 15:01:58 +07:00 committed by GitHub
commit cc77ae3430
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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