From 23d9b2fefeda41449d3d7fe09d85d7ec961250eb Mon Sep 17 00:00:00 2001 From: Kenneth Date: Mon, 15 Dec 2025 22:35:36 +0000 Subject: [PATCH] fix: >1 path breadcrumb not displaying root label --- .../src/directories/directory-path-breadcrumb.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/apps/drive-web/src/directories/directory-path-breadcrumb.tsx b/apps/drive-web/src/directories/directory-path-breadcrumb.tsx index ff3a118..1a9c5fc 100644 --- a/apps/drive-web/src/directories/directory-path-breadcrumb.tsx +++ b/apps/drive-web/src/directories/directory-path-breadcrumb.tsx @@ -52,9 +52,9 @@ export function DirectoryPathBreadcrumb({ const breadcrumbItems: React.ReactNode[] = [ , @@ -65,7 +65,6 @@ export function DirectoryPathBreadcrumb({ @@ -88,12 +87,12 @@ export function DirectoryPathBreadcrumb({ function FilePathBreadcrumbItem({ segment, - rootLabel, + label, directoryUrlFn, fileDragInfoAtom, }: { segment: PathSegment - rootLabel: string + label?: string directoryUrlFn: (directoryId: string) => string fileDragInfoAtom: PrimitiveAtom }) { @@ -102,7 +101,7 @@ function FilePathBreadcrumbItem({ dragInfoAtom: fileDragInfoAtom, }) - const dirName = segment.name || rootLabel + const dirName = label || segment.name return (