Skip to content

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

fix: images in the row perspective

Ilian Sapundshiev71a2b398b298
diff --git a/src/renderer/perspectives/list/components/RowCell.tsx b/src/renderer/perspectives/list/components/RowCell.tsx
index 75a76e1a1..683fc18f7 100644
--- a/src/renderer/perspectives/list/components/RowCell.tsx
+++ b/src/renderer/perspectives/list/components/RowCell.tsx
@@ -402,6 +402,7 @@ function RowCell(props: Props) {
marginRight: 5,
textAlign: 'left',
display: 'flex',
+ alignSelf: 'center',
}}
>
{generateExtension()}
@@ -450,7 +451,7 @@ function RowCell(props: Props) {
variant="body2"
>
<Tooltip title={fSystemEntry.size + ' ' + t('core:sizeInBytes')}>
- <span>{entrySizeFormatted}</span>
+ {entrySizeFormatted}
</Tooltip>
<Tooltip
title={
@@ -467,7 +468,14 @@ function RowCell(props: Props) {
</Grid>
)}
{fSystemEntry.thumbPath && (
- <Grid item style={{ display: 'flex', alignItems: 'center' }}>
+ <Grid
+ item
+ style={{
+ display: 'flex',
+ width: entryHeight,
+ alignItems: 'center',
+ }}
+ >
<img
alt="thumbnail"
src={
@@ -486,13 +494,11 @@ function RowCell(props: Props) {
style={{
backgroundRepeat: 'no-repeat',
backgroundPosition: 'center',
- borderRadius: 5,
- marginBottom: 5,
+ // borderRadius: 5,
+ // backgroundColor: 'red',
objectFit: thumbnailMode,
- paddingRight: 4,
- paddingTop: 4,
- height: entryHeight,
- width: entryHeight,
+ height: entryHeight - 5,
+ width: entryHeight - 5,
}}
/>
</Grid>