修复文件管理器面包屑导航和状态栏显示问题
修复内容: - 面包屑导航:移除重复的斜杠分隔符,优化路径显示逻辑 - 根目录按钮后添加间距,提升视觉效果 - 状态栏:修复重复数字显示问题,移除冗余的files.length 显示优化: - 面包屑:从 "/ / home / ubuntu" 改为 "/ home / ubuntu" - 状态栏:从 "26 26 items" 改为 "26 items" 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -456,19 +456,21 @@ export function FileManagerGrid({
|
||||
<div className="flex items-center px-3 py-2 text-sm">
|
||||
<button
|
||||
onClick={() => navigateToPath(-1)}
|
||||
className="hover:text-blue-400 hover:underline"
|
||||
className="hover:text-blue-400 hover:underline mr-1"
|
||||
>
|
||||
/
|
||||
</button>
|
||||
{pathParts.map((part, index) => (
|
||||
<React.Fragment key={index}>
|
||||
<span className="mx-1 text-muted-foreground">/</span>
|
||||
<button
|
||||
onClick={() => navigateToPath(index)}
|
||||
className="hover:text-blue-400 hover:underline"
|
||||
>
|
||||
{part}
|
||||
</button>
|
||||
{index < pathParts.length - 1 && (
|
||||
<span className="mx-1 text-muted-foreground">/</span>
|
||||
)}
|
||||
</React.Fragment>
|
||||
))}
|
||||
</div>
|
||||
@@ -694,7 +696,7 @@ export function FileManagerGrid({
|
||||
<div className="flex-shrink-0 border-t border-dark-border px-4 py-2 text-xs text-muted-foreground">
|
||||
<div className="flex justify-between items-center">
|
||||
<span>
|
||||
{files.length} {t("fileManager.itemCount", { count: files.length })}
|
||||
{t("fileManager.itemCount", { count: files.length })}
|
||||
</span>
|
||||
{selectedFiles.length > 0 && (
|
||||
<span>
|
||||
|
||||
Reference in New Issue
Block a user