style(catalog): 文件格式筛选默认折叠
build / build (push) Successful in 1m5s

This commit is contained in:
姚章浩
2026-10-27 10:48:09 +08:00
parent 7448d130ec
commit 52f4117835
3 changed files with 7 additions and 0 deletions
+3
View File
@@ -71,7 +71,10 @@ export function SourceCatalogBrowserView({sources,selectedSource,page,loading,er
<nav aria-label="目录面包屑">{page.breadcrumbs.map((crumb,index)=><span key={crumb.node_id}>{index>0?<i aria-hidden="true">/</i>:null}<button type="button" className={index===page.breadcrumbs.length-1?'current':''} disabled={index===page.breadcrumbs.length-1} onClick={()=>onNavigateTo(crumb.node_id)}>{crumb.name}</button></span>)}</nav>
</div>
<div className="catalog-summary"><div><strong>{page.current.name}</strong><small>{selectedSource.snapshot_only?'本地只读快照,不代表实时连接':'实时目录'}</small></div><span>{atSourceRoot?`第一层目录 ${page.items.filter(node=>node.node_type==='folder').length}`:`当前子项 ${page.total}`}</span><span>含所有子目录文件 {page.current.subtree_file_count}</span><span>总大小 {bytes(page.current.subtree_bytes)}</span></div>
<details className="catalog-format-filter">
<summary>文件格式筛选</summary>
<FilenameFilterEditor connectionID={selectedSource.connection_id} directoryPath={page.breadcrumbs.slice(1).map((item)=>item.name).join('/')} label={atSourceRoot?'整个来源':'当前目录'} onChanged={onFiltersChanged} />
</details>
{visibleItems.length?<section className="catalog-routing">
<div className="routing-actions">