Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
frontend/projects: fix icon of starred or recent directories
  • Loading branch information
haraldschilly committed Nov 27, 2025
commit 55e2641ac6f6c4d467c1cfc7fef5fe33b818d897
6 changes: 4 additions & 2 deletions src/packages/frontend/projects/util.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,10 @@ export function useFilesMenuItems(

return files.map((file) => {
const filename = typeof file === "string" ? file : file.filename;
const info = file_options(filename);
const icon: IconName = info?.icon ?? "file";
const isDirectory = filename.endsWith("/");
const icon: IconName = isDirectory
? "folder-open"
: (file_options(filename)?.icon ?? "file");

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