TagSpaces is an offline, open source, document manager with tagging support
chore: improving row view rendering in default perpsective
Ilian Sapundshiev311919950101
diff --git a/app/perspectives/grid-perspective/components/CellContent.tsx b/app/perspectives/grid-perspective/components/CellContent.tsxindex 8235d2fa9..dfee57cb8 100644--- a/app/perspectives/grid-perspective/components/CellContent.tsx+++ b/app/perspectives/grid-perspective/components/CellContent.tsx@@ -255,6 +255,10 @@ const CellContent = (props: Props) => {} else if (entrySize === 'big') {tmbSize = 100;}+ const backgroundColor = selected+ ? theme.palette.primary.light+ : fsEntryBgColor;+return (<Gridcontainer@@ -263,9 +267,8 @@ const CellContent = (props: Props) => {title={fsEntry.isIgnored && i18n.t('core:ignoredFolder')}style={{opacity: fsEntry.isIgnored ? 0.3 : 1,- backgroundColor: selected- ? theme.palette.primary.light- : theme.palette.background.default+ backgroundColor: backgroundColor,+ borderRadius: 5}}><Grid@@ -294,7 +297,8 @@ const CellContent = (props: Props) => {}}}style={{- backgroundColor: fsEntryColor+ backgroundColor: fsEntryColor,+ alignSelf: entrySize === 'small' ? 'center' : 'auto'}}>{fsEntry.isFile ? fsEntry.extension : <FolderIcon />}diff --git a/app/perspectives/grid-perspective/components/styles.css.tsx b/app/perspectives/grid-perspective/components/styles.css.tsxindex c94cb69d7..f545b78d8 100644--- a/app/perspectives/grid-perspective/components/styles.css.tsx+++ b/app/perspectives/grid-perspective/components/styles.css.tsx@@ -60,7 +60,6 @@ export default (theme: any): any => ({backgroundColor: theme.palette.primary.light + ' !important'},selectedRowCell: {- borderRadius: 0,border: '1px solid' + theme.palette.primary.main + ' !important'},gridCellThumb: {