Skip to content

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

chore: ui improvement, added hover for row elements

Ilian Sapundshiev155653a84958
diff --git a/app/perspectives/grid-perspective/components/CellContent.tsx b/app/perspectives/grid-perspective/components/CellContent.tsx
index be6233217..786172d1a 100644
--- a/app/perspectives/grid-perspective/components/CellContent.tsx
+++ b/app/perspectives/grid-perspective/components/CellContent.tsx
@@ -225,6 +225,7 @@ const CellContent = (props: Props) => {
<Grid
container
wrap="nowrap"
+ className={classes.rowHover}
style={{
backgroundColor: selected
? theme.palette.primary.light
@@ -316,7 +317,7 @@ const CellContent = (props: Props) => {
</Grid>
)}
{fsEntry.thumbPath && (
- <Grid item>
+ <Grid item style={{ display: 'flex', alignItems: 'center' }}>
<img
alt="thumbnail"
className={classes.gridCellThumb}
diff --git a/app/perspectives/grid-perspective/components/styles.css.tsx b/app/perspectives/grid-perspective/components/styles.css.tsx
index 13e2c6c31..f486606b9 100644
--- a/app/perspectives/grid-perspective/components/styles.css.tsx
+++ b/app/perspectives/grid-perspective/components/styles.css.tsx
@@ -49,6 +49,11 @@ export default (theme: any): any => ({
marginTop: 0,
marginBottom: 0
},
+ rowHover: {
+ '&:hover': {
+ backgroundColor: theme.palette.divider + ' !important'
+ }
+ },
selectedGridCell: {
border: '2px solid' + theme.palette.primary.main,
backgroundColor: theme.palette.primary.light + ' !important'