From 4c68fd90ca46c03b93f37307e8a6a924ef0eb123 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sun, 23 Oct 2016 16:30:54 -0400 Subject: [PATCH] set useful num for desc truncation on map cards --- frontend/src/components/Maps/MapCard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Maps/MapCard.js b/frontend/src/components/Maps/MapCard.js index 085784d7..031ec629 100644 --- a/frontend/src/components/Maps/MapCard.js +++ b/frontend/src/components/Maps/MapCard.js @@ -95,7 +95,7 @@ class MapCard extends Component { const d = map.get('desc') const maxNameLength = 32 - const maxDescLength = 236 + const maxDescLength = 180 const truncatedName = n ? (n.length > maxNameLength ? n.substring(0, maxNameLength) + '...' : n) : '' const truncatedDesc = d ? (d.length > maxDescLength ? d.substring(0, maxDescLength) + '...' : d) : '' const editPermission = map.authorizeToEdit(currentUser) ? 'canEdit' : 'cannotEdit'