Skip to content

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

polish: finetune row view in grid perspective (#1285)

Ilian1d76778dcb96
diff --git a/app/perspectives/grid-perspective/components/CellContent.tsx b/app/perspectives/grid-perspective/components/CellContent.tsx
index e8b46c319..3dbf56db7 100644
--- a/app/perspectives/grid-perspective/components/CellContent.tsx
+++ b/app/perspectives/grid-perspective/components/CellContent.tsx
@@ -219,11 +219,11 @@ const CellContent = (props: Props) => {
function renderRowCell(selected: boolean) {
let tmbSize = 85;
if (entrySize === 'small') {
- tmbSize = 50;
+ tmbSize = 30;
} else if (entrySize === 'normal') {
- tmbSize = 85;
+ tmbSize = 70;
} else if (entrySize === 'big') {
- tmbSize = 120;
+ tmbSize = 100;
}
return (
<Grid
@@ -240,11 +240,11 @@ const CellContent = (props: Props) => {
item
style={{
minHeight: entryHeight,
- width: 70,
- maxWidth: 70,
- padding: 10,
+ width: 50,
+ maxWidth: 50,
+ padding: 3,
marginRight: 5,
- textAlign: 'center',
+ textAlign: 'left',
backgroundColor: fsEntryBackgroundColor
}}
>
@@ -362,11 +362,11 @@ const CellContent = (props: Props) => {
let entryHeight = 130;
if (entrySize === 'small') {
- entryHeight = 50;
+ entryHeight = 35;
} else if (entrySize === 'normal') {
- entryHeight = 80;
+ entryHeight = 70;
} else if (entrySize === 'big') {
- entryHeight = 130;
+ entryHeight = 100;
}
let gridCell: any = React.Fragment;
diff --git a/app/perspectives/grid-perspective/components/styles.css.tsx b/app/perspectives/grid-perspective/components/styles.css.tsx
index 1397fd55e..e30bf9881 100644
--- a/app/perspectives/grid-perspective/components/styles.css.tsx
+++ b/app/perspectives/grid-perspective/components/styles.css.tsx
@@ -22,14 +22,14 @@ export default (theme: any): any => ({
display: 'grid',
gridGap: '0px 0px',
padding: 0,
- paddingRight: 10,
+ paddingRight: 4,
paddingBottom: 20
},
rowContainer: {
display: 'grid',
gridGap: '0px 0px',
padding: 0,
- paddingRight: 10,
+ paddingRight: 4,
margin: 0,
paddingBottom: 10
},
@@ -103,9 +103,6 @@ export default (theme: any): any => ({
rowFileExtension: {
flex: 1,
padding: 5,
- marginTop: 5,
- marginRight: 5,
- marginLeft: 5,
width: 35,
maxWidth: 60,
minHeight: 15,