TagSpaces is an offline, open source, document manager with tagging support
chore: improving the file selection component
Ilian Sapundshiev70748119b022
diff --git a/src/renderer/components/dialogs/components/SelectedItemsSummary.tsx b/src/renderer/components/dialogs/components/SelectedItemsSummary.tsxindex 43be94652..20404072f 100644--- a/src/renderer/components/dialogs/components/SelectedItemsSummary.tsx+++ b/src/renderer/components/dialogs/components/SelectedItemsSummary.tsx@@ -17,7 +17,7 @@*/import AppConfig from '-/AppConfig';-import { FileIcon, FolderIcon } from '-/components/CommonIcons';+import { FolderIcon } from '-/components/CommonIcons';import FileExtBadge from '-/components/FileExtBadge';import {getDefaultFolderColor,@@ -283,8 +283,12 @@ function SelectedItemsSummary({ entries, dirProp, defaultCollapsed }: Props) {: null;return (<ListItem title={entry.path} key={entry.path} sx={{ gap: 1 }}>- <ListItemIcon sx={{ minWidth: 32 }}>- {entry.isFile ? <FileIcon /> : <FolderIcon />}+ <ListItemIcon sx={{ minWidth: 44 }}>+ <ExtensionTile+ entry={entry}+ supportedFileTypes={supportedFileTypes}+ defaultFolderColor={defaultFolderColor}+ /></ListItemIcon><Box sx={{ flex: 1, minWidth: 0 }}><Typography variant="body2" noWrap>