Skip to content

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

updating layout of grid perspective

Ilian Sapundshiev05b021c86848
diff --git a/app/containers/MainPage.js b/app/containers/MainPage.js
index 973e5d719..ee04673db 100644
--- a/app/containers/MainPage.js
+++ b/app/containers/MainPage.js
@@ -181,7 +181,7 @@ class MainPage extends Component<Props, State> {
height: 1000
};
- componentDidMount() {
+ UNSAFE_componentWillMount() {
this.updateDimensions();
}
diff --git a/app/perspectives/grid-perspective/components/styles.css.js b/app/perspectives/grid-perspective/components/styles.css.js
index 844c9861c..dc4af45cf 100644
--- a/app/perspectives/grid-perspective/components/styles.css.js
+++ b/app/perspectives/grid-perspective/components/styles.css.js
@@ -22,8 +22,9 @@ export default (theme) => ({
gridContainer: {
display: 'grid',
gridGap: '2px 2px',
- padding: 10,
- marginBottom: 100,
+ padding: 2,
+ paddingRight: 10,
+ paddingBottom: 200,
},
rowContainer: {
display: 'grid',
@@ -31,7 +32,7 @@ export default (theme) => ({
padding: 0,
paddingRight: 10,
margin: 0,
- marginBottom: 100
+ paddingBottom: 200,
},
gridCell: {
// backgroundColor: theme.palette.background.paper,
@@ -137,8 +138,7 @@ export default (theme) => ({
gridFolder: {
color: 'white',
padding: 5,
- marginRight: 5,
- minHeight: 10,
+ minHeight: 15,
height: 20,
},
topToolbar: {