fix: standardize punctuation
This commit is contained in:
@@ -412,7 +412,7 @@ export function FileBrowser({
|
||||
// Filter and sort resources
|
||||
const displayResources = useMemo(() => {
|
||||
let filtered = resources;
|
||||
// In sidebar mode, folders are shown in the sidebar tree — hide them from the main list
|
||||
// In sidebar mode, folders are shown in the sidebar tree - hide them from the main list
|
||||
if (folderLayout === "sidebar") {
|
||||
filtered = filtered.filter(r => !r.isDirectory);
|
||||
}
|
||||
@@ -1466,7 +1466,7 @@ export function FileBrowser({
|
||||
</div>
|
||||
</td>
|
||||
<td className="px-4 py-2.5 text-muted-foreground hidden md:table-cell tabular-nums">
|
||||
{resource.isDirectory ? "—" : formatFileSize(resource.contentLength)}
|
||||
{resource.isDirectory ? "-" : formatFileSize(resource.contentLength)}
|
||||
</td>
|
||||
<td className="px-4 py-2.5 text-muted-foreground hidden lg:table-cell tabular-nums">
|
||||
{formatDate(resource.lastModified)}
|
||||
|
||||
@@ -58,7 +58,7 @@ export function FolderTreeSidebar({ currentPath, onNavigate, listByParentId, wid
|
||||
};
|
||||
});
|
||||
|
||||
// Don't cache empty root results — empty root likely means client wasn't ready yet
|
||||
// Don't cache empty root results - empty root likely means client wasn't ready yet
|
||||
if (folders.length > 0 || parentId !== null) {
|
||||
setChildrenCache(prev => new Map(prev).set(cacheKey, folders));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user