文件搜索结果里对目录图标着色

This commit is contained in:
xintaofei
2026-03-19 00:35:36 +08:00
parent 33d70b8866
commit dc461c1c18
4 changed files with 59 additions and 59 deletions

View File

@@ -2321,7 +2321,9 @@ export function FileTreeTab() {
<DialogContent
onOpenAutoFocus={(e) => {
e.preventDefault()
const input = (e.currentTarget as HTMLElement | null)?.querySelector("input")
const input = (
e.currentTarget as HTMLElement | null
)?.querySelector("input")
if (input) requestAnimationFrame(() => input.focus())
}}
>
@@ -2388,7 +2390,9 @@ export function FileTreeTab() {
<DialogContent
onOpenAutoFocus={(e) => {
e.preventDefault()
const input = (e.currentTarget as HTMLElement | null)?.querySelector("input")
const input = (
e.currentTarget as HTMLElement | null
)?.querySelector("input")
if (input) requestAnimationFrame(() => input.focus())
}}
>