Skip to content

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

feat: allow showing two lines of text for the entry title in the grid

Ilian Sapundshievd24642157341
diff --git a/app/perspectives/grid-perspective/components/CellContent.tsx b/app/perspectives/grid-perspective/components/CellContent.tsx
index f8f226443..c95059ac1 100644
--- a/app/perspectives/grid-perspective/components/CellContent.tsx
+++ b/app/perspectives/grid-perspective/components/CellContent.tsx
@@ -221,7 +221,6 @@ function CellContent(props: Props) {
<Typography
className={classes.gridCellTitle}
data-tid={'fsEntryName_' + fsEntry.name}
- noWrap={true}
variant="body1"
>
{entryTitle}
diff --git a/app/perspectives/grid-perspective/components/styles.css.tsx b/app/perspectives/grid-perspective/components/styles.css.tsx
index f03b861a3..4be47e1fe 100644
--- a/app/perspectives/grid-perspective/components/styles.css.tsx
+++ b/app/perspectives/grid-perspective/components/styles.css.tsx
@@ -62,8 +62,13 @@ export default (theme: any): any => ({
marginBottom: 5
},
gridCellTitle: {
- padding: 5,
- minHeight: 20
+ padding: '0px 5px 0 5px',
+ minHeight: 45,
+ display: '-webkit-box',
+ WebkitLineClamp: 2,
+ WebkitBoxOrient: 'vertical',
+ textOverflow: 'ellipsis',
+ overflow: 'hidden'
},
gridCellTags: {
padding: 0,