We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74f0c57 + 55e2641 commit 88d2681Copy full SHA for 88d2681
src/packages/frontend/projects/util.tsx
@@ -348,8 +348,10 @@ export function useFilesMenuItems(
348
349
return files.map((file) => {
350
const filename = typeof file === "string" ? file : file.filename;
351
- const info = file_options(filename);
352
- const icon: IconName = info?.icon ?? "file";
+ const isDirectory = filename.endsWith("/");
+ const icon: IconName = isDirectory
353
+ ? "folder-open"
354
+ : (file_options(filename)?.icon ?? "file");
355
356
const label = labelStyle ? (
357
<span style={labelStyle}>{trunc_middle(filename, truncLength)}</span>
0 commit comments