Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: improving extension presentation in list perspective

Ilian Sapundshievb76faefae45f
diff --git a/app/components/CommonIcons.tsx b/app/components/CommonIcons.tsx
index f09e384ce..0f56b16f8 100644
--- a/app/components/CommonIcons.tsx
+++ b/app/components/CommonIcons.tsx
@@ -31,12 +31,15 @@ import KeyShortcuts from '@mui/icons-material/Keyboard';
import Menu from '@mui/icons-material/Menu';
import ArrowBack from '@mui/icons-material/ArrowBack';
import ArrowForward from '@mui/icons-material/ArrowForward';
+import Folder from '@mui/icons-material/Folder';
export const ParentFolderIcon = props => (
// <ParentDirIcon style={{ transform: 'rotate(-90deg)' }} /> SubdirectoryArrowLeft
<ParentFolder {...props} />
);
+export const FolderIcon = props => <Folder {...props} />;
+
export const MainMenuIcon = props => <Menu {...props} />;
export const GoBackIcon = props => <ArrowBack {...props} />;
diff --git a/app/perspectives/grid-perspective/components/CellContent.tsx b/app/perspectives/grid-perspective/components/CellContent.tsx
index 61c9ceaf4..3be41d9b6 100644
--- a/app/perspectives/grid-perspective/components/CellContent.tsx
+++ b/app/perspectives/grid-perspective/components/CellContent.tsx
@@ -22,7 +22,6 @@ import Grid from '@mui/material/Grid';
import Typography from '@mui/material/Typography';
import Paper from '@mui/material/Paper';
import Tooltip from '-/components/Tooltip';
-import FolderIcon from '@mui/icons-material/Folder';
import FolderOpenIcon from '@mui/icons-material/FolderOpen';
import SelectedIcon from '@mui/icons-material/CheckBox';
import UnSelectedIcon from '@mui/icons-material/CheckBoxOutlineBlank';
@@ -51,6 +50,7 @@ import EntryIcon from '-/components/EntryIcon';
import { TS } from '-/tagspaces.namespace';
import TaggingActions from '-/reducers/tagging-actions';
import { getLastThumbnailImageChange } from '-/reducers/app';
+import { FolderIcon } from '-/components/CommonIcons';
// import { getTagColor } from '-/reducers/settings';
const maxDescriptionPreviewLength = 100;
@@ -335,7 +335,14 @@ function CellContent(props: Props) {
>
{selected ? <SelectedIcon /> : <UnSelectedIcon />}
{fsEntry.isFile ? (
- <span style={{ marginTop: isSmall ? 0 : 10 }}>
+ <span
+ style={{
+ width: '100%',
+ marginTop: isSmall ? 0 : 10,
+ textShadow: '1px 1px #8f8f8f',
+ overflowWrap: 'anywhere'
+ }}
+ >
{fsEntry.extension}
</span>
) : (