feat(search-dialog): show active folder in search popup header

This commit is contained in:
xintaofei
2026-04-23 14:11:54 +08:00
parent c7cd94a01b
commit 7aec93e922
11 changed files with 25 additions and 1 deletions

View File

@@ -175,11 +175,25 @@ export function SearchCommandDialog({
return (
<CommandDialog
title={t("dialogTitle")}
title={
folder
? t("dialogTitleWithFolder", { name: folder.name })
: t("dialogTitle")
}
open={open}
onOpenChange={onOpenChange}
shouldFilter={activeTab === "conversations"}
>
{/* Folder context header */}
{folder && (
<div className="flex items-center gap-2 border-b px-4 py-2.5">
<Folder className="w-4 h-4 shrink-0 text-muted-foreground" />
<span className="text-sm font-medium truncate">
{t("dialogTitleWithFolder", { name: folder.name })}
</span>
</div>
)}
{/* Tabs */}
<div className="flex items-center gap-0 border-b px-3">
<button