diff --git a/packages/web/src/directories/directory-page/file-path-breadcrumb.tsx b/packages/web/src/directories/directory-page/file-path-breadcrumb.tsx
index b9a21cd..29643d1 100644
--- a/packages/web/src/directories/directory-page/file-path-breadcrumb.tsx
+++ b/packages/web/src/directories/directory-page/file-path-breadcrumb.tsx
@@ -30,7 +30,10 @@ export function FilePathBreadcrumb({ rootLabel }: { rootLabel: string }) {
breadcrumbItems.push(
-
+
,
)
}
@@ -43,7 +46,10 @@ export function FilePathBreadcrumb({ rootLabel }: { rootLabel: string }) {
{rootLabel}
) : (
-
+
)}
{breadcrumbItems}
@@ -55,13 +61,19 @@ export function FilePathBreadcrumb({ rootLabel }: { rootLabel: string }) {
)
}
-function FilePathBreadcrumbItem({ component }: { component: PathComponent }) {
+function FilePathBreadcrumbItem({
+ component,
+ rootLabel,
+}: {
+ component: PathComponent
+ rootLabel: string
+}) {
const { isDraggedOver, dropHandlers } = useFileDrop({
destItem: component.handle as DirectoryHandle,
dragInfoAtom,
})
- const dirName = component.name || "All Files"
+ const dirName = component.name || rootLabel
return (