文件搜索结果里对目录图标着色
This commit is contained in:
@@ -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())
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user