this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Drop ghost trailing crumb at directory root

FileView's active-crumb slot was unconditionally rendering the current
directory's decrypted name. At the root, that stacked the root dir's
name ("/") on top of the already-present "Your Cabinet" / workspace
root link, so DaisyUI painted an extra separator and the user saw
`Your Cabinet / /`. Only render the active crumb when we're inside a
subdirectory.

+5 -1
+5 -1
apps/web/src/components/cabinet/FileView.tsx
··· 123 123 [treeSnapshot, currentDirectoryUri], 124 124 ); 125 125 126 + // Active crumb: only render when we're inside a subdirectory. The root 127 + // crumb ("Your Cabinet" / workspace name) is already the root — rendering 128 + // the root directory's decrypted name on top of that produces a ghost 129 + // "/" segment (e.g. `Your Cabinet / /`). 126 130 const currentDirName = 127 - currentDirectoryUri && treeSnapshot 131 + currentDirectoryUri && treeSnapshot && currentDirectoryUri !== treeSnapshot.rootUri 128 132 ? // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- runtime guard: Record lookup 129 133 (treeSnapshot.directories[currentDirectoryUri]?.name ?? null) 130 134 : null;