Skip to content

Commit

Permalink
fix: breadcrumb current folder highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
Monta authored and Monta committed May 12, 2024
1 parent 955e350 commit 6f7626d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,17 @@ const PathItem = ({
MenusManager.openMenu(trashMenuItems, { x: evt.clientX, y: evt.clientY }, 'center');
} else {
if (viewId === 'root') {
onClick('root', '')
onClick('root', '');
} else if (viewId === 'user_' + user?.id) {
onClick('user_' + user?.id, '')
onClick('user_' + user?.id, '');
}
}
} else {
onClick(viewId || '', item?.id || '');
}
}}
>
<Title>
<Title noColor={last} className={last ? 'text-blue-500' : ''}>
{(() => {
const isTrash = viewId?.includes('trash_') || viewId === 'trash';
const fileName = cutFileName(item?.name) || '';
Expand Down

0 comments on commit 6f7626d

Please sign in to comment.