TagSpaces is an offline, open source, document manager with tagging support
chore: small ui optimizations
Ilian Sapundshiev5a893cd891e5
diff --git a/src/renderer/perspectives/grid/components/GridPagination.tsx b/src/renderer/perspectives/grid/components/GridPagination.tsxindex 4c2a4973e..99beb8fd3 100644--- a/src/renderer/perspectives/grid/components/GridPagination.tsx+++ b/src/renderer/perspectives/grid/components/GridPagination.tsx@@ -398,6 +398,12 @@ function GridPagination(props: Props) {<SelectionDragLayer /><SelectionArea onSelect={handleSelect}><GridCellsContainer>+ {pageFiles.length < 1 &&+ renderEmptyState(t('core:noFileFolderFound'))}+ {files.length < 1 &&+ dirs.length >= 1 &&+ !showDirectories &&+ renderEmptyState(t('core:noFileButFoldersFound'))}{pageFiles.map((entry, index) => (<CellViewkey={entry.uuid}@@ -407,14 +413,12 @@ function GridPagination(props: Props) {isLast={index === pageFiles.length - 1}/>))}- <Box sx={{ flexGrow: 1 }} />- <Box sx={{ flexGrow: 1 }} />- {pageFiles.length < 1 &&- renderEmptyState(t('core:noFileFolderFound'))}- {files.length < 1 &&- dirs.length >= 1 &&- !showDirectories &&- renderEmptyState(t('core:noFileButFoldersFound'))}+ {pageFiles.length > 0 && (+ <>+ <Box sx={{ flexGrow: 1 }} />+ <Box sx={{ flexGrow: 1 }} />+ </>+ )}</GridCellsContainer>{showPagination && (<TooltipTS title={folderSummary}>