Skip to content

Commit 88d2681

Browse files
committed
Merge remote-tracking branch 'origin/fix-icon-files-starred-dropdown' into pr-20251208
2 parents 74f0c57 + 55e2641 commit 88d2681

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/packages/frontend/projects/util.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,10 @@ export function useFilesMenuItems(
348348

349349
return files.map((file) => {
350350
const filename = typeof file === "string" ? file : file.filename;
351-
const info = file_options(filename);
352-
const icon: IconName = info?.icon ?? "file";
351+
const isDirectory = filename.endsWith("/");
352+
const icon: IconName = isDirectory
353+
? "folder-open"
354+
: (file_options(filename)?.icon ?? "file");
353355

354356
const label = labelStyle ? (
355357
<span style={labelStyle}>{trunc_middle(filename, truncLength)}</span>

0 commit comments

Comments
 (0)