set useful num for desc truncation on map cards
This commit is contained in:
parent
cda0c21a0b
commit
4c68fd90ca
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ class MapCard extends Component {
|
||||||
const d = map.get('desc')
|
const d = map.get('desc')
|
||||||
|
|
||||||
const maxNameLength = 32
|
const maxNameLength = 32
|
||||||
const maxDescLength = 236
|
const maxDescLength = 180
|
||||||
const truncatedName = n ? (n.length > maxNameLength ? n.substring(0, maxNameLength) + '...' : n) : ''
|
const truncatedName = n ? (n.length > maxNameLength ? n.substring(0, maxNameLength) + '...' : n) : ''
|
||||||
const truncatedDesc = d ? (d.length > maxDescLength ? d.substring(0, maxDescLength) + '...' : d) : ''
|
const truncatedDesc = d ? (d.length > maxDescLength ? d.substring(0, maxDescLength) + '...' : d) : ''
|
||||||
const editPermission = map.authorizeToEdit(currentUser) ? 'canEdit' : 'cannotEdit'
|
const editPermission = map.authorizeToEdit(currentUser) ? 'canEdit' : 'cannotEdit'
|
||||||
|
|
Loading…
Reference in a new issue