Permalink
Browse files

Update max characters for title

  • Loading branch information...
Floris Verloop
Floris Verloop committed Aug 3, 2016
1 parent d34658d commit 781cc5000c80e3b59db45ffc3aaf2f71a2a522ed
Showing with 3 additions and 2 deletions.
  1. +3 −2 framer/Components/ShareComponent.coffee
@@ -135,9 +135,10 @@ class ShareComponent
@_startListening()
_truncateCredential: (str) ->
_truncateCredential: (str, title) ->
maxLength = 36
maxLengthWithAvatar = 25
maxLengthWithAvatar = 34 if title
str = _.escape(str)
@@ -158,7 +159,7 @@ class ShareComponent
# Truncate title if too long
if @shareInfo.title
@shareInfo.title = @_truncateCredential(@shareInfo.title)
@shareInfo.title = @_truncateCredential(@shareInfo.title, true)
# Render main sheet
_renderSheet: ->

0 comments on commit 781cc50

Please sign in to comment.