Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paulclindo committed Jan 9, 2025
1 parent 642a387 commit abf9085
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions apps/shinkai-desktop/src/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,10 @@ html {
scrollbar-width: none;
-ms-overflow-style: none;
}

.p-node-disabled{
pointer-events: none;
& .p-checkbox-box{
@apply !bg-gray-100;
}
}
1 change: 1 addition & 0 deletions apps/shinkai-desktop/src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const treeOptions: TreePassThroughOptions = {
context.isLeaf && 'invisible',
),
}),

nodeIcon: { className: 'mr-2 text-gray-50' },
subgroup: {
className: cn('m-0 list-none', 'space-y-1 p-0 pl-4'),
Expand Down
3 changes: 1 addition & 2 deletions libs/shinkai-node-state/src/lib/utils/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export function transformDataToTreeNodes(
key: item.path,
label: item.name,
data: item,

icon: item.is_directory ? 'icon-folder' : 'icon-file',
children: item.is_directory
? transformDataToTreeNodes(
Expand All @@ -23,7 +22,7 @@ export function transformDataToTreeNodes(
)
: undefined,
expanded: true,
selectable: selectedPaths?.includes(item.path) ? false : true,
className: selectedPaths?.includes(item.path) ? 'p-node-disabled' : '',
};
result.push(itemNode);
}
Expand Down

0 comments on commit abf9085

Please sign in to comment.