Skip to content

Commit

Permalink
wip: Enhance file explorer for presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobiClark committed Dec 5, 2024
1 parent 5a86d4c commit b9f84e7
Show file tree
Hide file tree
Showing 6 changed files with 250 additions and 242 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ const FolderItem = ({
Object.keys(content.files || {}).length === 0;

const folderHasFiles = Object.keys(content.files || {}).length > 0;
const folderHasFolders = Object.keys(content.folders || {}).length > 0;

const isViewOnly = !onFileClick || !onFolderClick || !getEntityForRelativePath;

Expand All @@ -157,7 +156,7 @@ const FolderItem = ({
/>
)}
{!isViewOnly && (
<Tooltip label="Select folder" zIndex={2999}>
<Tooltip label="Select folder">
<Checkbox
readOnly
onClick={() => onFolderClick(name, content, "folder-select")}
Expand All @@ -173,14 +172,14 @@ const FolderItem = ({
{!isViewOnly && (
<>
{folderHasFiles && (
<Tooltip label="Select all files in this folder" zIndex={2999}>
<Tooltip label="Select all files in this folder">
<IconFileDownload
size={20}
onClick={() => onFolderClick(name, content, "folder-files-select")}
/>
</Tooltip>
)}
<Tooltip label="Select this folder and ALL contents" zIndex={2999}>
<Tooltip label="Select this folder and ALL contents">
<IconSelect
size={20}
onClick={() => onFolderClick(name, content, "folder-recursive-select")}
Expand Down
Loading

0 comments on commit b9f84e7

Please sign in to comment.