Skip to content

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

- setting a max width for grid - showing message by availabe but hidden folders

Ilian Sapundshieva8fbcc7075ea
diff --git a/app/perspectives/grid-perspective/components/MainContainer.js b/app/perspectives/grid-perspective/components/MainContainer.js
index e2a5f49db..a81f9d6b0 100644
--- a/app/perspectives/grid-perspective/components/MainContainer.js
+++ b/app/perspectives/grid-perspective/components/MainContainer.js
@@ -794,6 +794,11 @@ class GridPerspective extends React.Component<Props, State> {
{i18n.t('core:noFileFolderFound')}
</Typography>
)}
+ {(!isAppLoading && sortedFiles.length < 1 && sortedDirectories.length >= 1 && !this.state.showDirectories) && (
+ <Typography style={{ padding: 15 }}>
+ {i18n.t('core:noFileButFoldersFound')}
+ </Typography>
+ )}
</div>
</div>
</div>
diff --git a/app/perspectives/grid-perspective/components/styles.css.js b/app/perspectives/grid-perspective/components/styles.css.js
index 361837f7d..844c9861c 100644
--- a/app/perspectives/grid-perspective/components/styles.css.js
+++ b/app/perspectives/grid-perspective/components/styles.css.js
@@ -23,7 +23,7 @@ export default (theme) => ({
display: 'grid',
gridGap: '2px 2px',
padding: 10,
- marginBottom: 100
+ marginBottom: 100,
},
rowContainer: {
display: 'grid',
@@ -39,6 +39,7 @@ export default (theme) => ({
margin: 2,
marginBottom: 3,
marginRight: 3,
+ maxWidth: 500
},
rowCell: {
// backgroundColor: theme.palette.background.paper,