Skip to content

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

fix description

sytolkeb1eb99b417d
diff --git a/app/components/EntryContainer.tsx b/app/components/EntryContainer.tsx
index bb1db3bad..066289110 100644
--- a/app/components/EntryContainer.tsx
+++ b/app/components/EntryContainer.tsx
@@ -937,7 +937,8 @@ function EntryContainer(props: Props) {
<div
style={{
position: 'relative',
- overflow: 'hidden'
+ overflow: 'hidden',
+ height: '100%'
}}
>
{tabsComponent('160px')}
diff --git a/app/perspectives/grid-perspective/components/GridPagination.tsx b/app/perspectives/grid-perspective/components/GridPagination.tsx
index f2acba65c..2e196aff8 100644
--- a/app/perspectives/grid-perspective/components/GridPagination.tsx
+++ b/app/perspectives/grid-perspective/components/GridPagination.tsx
@@ -408,8 +408,6 @@ function GridPagination(props: Props) {
}
*/
- const displayDescription = showDescription && currentDirectoryDescription;
-
return (
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-noninteractive-element-interactions,jsx-a11y/no-static-element-interactions
<div
@@ -525,7 +523,7 @@ function GridPagination(props: Props) {
overflowY: 'auto'
}}
>
- {currentDirectoryDescription}
+ {getDescriptionPreview(currentDirectoryDescription, 200)}
</Typography>
)}
</Box>
@@ -548,7 +546,7 @@ function GridPagination(props: Props) {
</div>
</Grid>
)}
- {displayDescription && (
+ {showDescription && currentDirectoryDescription && (
<Grid
item
xs={12}
@@ -624,7 +622,7 @@ function GridPagination(props: Props) {
)}
{!isAppLoading && pageFiles.length < 1 && directories.length < 1 && (
<div style={{ textAlign: 'center' }}>
- {!displayDescription && (
+ {!showDescription && currentDirectoryDescription && (
<div style={{ position: 'relative', marginBottom: 150 }}>
<EntryIcon isFile={false} />
</div>
@@ -646,7 +644,7 @@ function GridPagination(props: Props) {
directories.length >= 1 &&
!showDirectories && (
<div style={{ textAlign: 'center' }}>
- {!displayDescription && (
+ {!showDescription && currentDirectoryDescription && (
<div style={{ position: 'relative', marginBottom: 150 }}>
<EntryIcon isFile={false} />
</div>
diff --git a/app/reducers/app.ts b/app/reducers/app.ts
index 95b247918..c5f6edbf5 100644
--- a/app/reducers/app.ts
+++ b/app/reducers/app.ts
@@ -57,13 +57,10 @@ import {
getRelativeEntryPath,
getCleanLocationPath,
updateFsEntries,
- loadMetaDataPromise,
mergeByProp,
toFsEntry,
- openURLExternally,
- getDescriptionPreview
+ openURLExternally
} from '-/services/utils-io';
-import { getUuid } from '@tagspaces/tagspaces-common/utils-io';
import i18n from '../services/i18n';
import { Pro } from '../pro';
import { actions as LocationIndexActions } from './location-index';