Skip to content

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

fix: tmb mode in grid perspective

Ilian Sapundshiev6db3d80b13bf
diff --git a/src/renderer/perspectives/grid-perspective/components/GridCell.tsx b/src/renderer/perspectives/grid-perspective/components/GridCell.tsx
index 7af061b16..fd8b059ce 100644
--- a/src/renderer/perspectives/grid-perspective/components/GridCell.tsx
+++ b/src/renderer/perspectives/grid-perspective/components/GridCell.tsx
@@ -138,7 +138,7 @@ function GridCell(props: Props) {
const { t } = useTranslation();
const theme = useTheme();
- const { entrySize, showEntriesDescription, showTags } =
+ const { entrySize, showEntriesDescription, showTags, thumbnailMode } =
usePerspectiveSettingsContext();
const { selectedEntries } = useSelectedEntriesContext();
const { addTags, editTagForEntry } = useTaggingActionsContext();
@@ -406,11 +406,12 @@ function GridCell(props: Props) {
loading="lazy"
// @ts-ignore
onError={(i) => (i.target.style.display = 'none')}
- alt="green iguana"
+ alt="thumbnail image"
height="auto"
src={tmbImgSrc}
style={{
height: maxHeight - 70,
+ objectFit: thumbnailMode,
}}
/>
) : (