Conversation
|
Thanks for the fixes. But I think css ellipsis will look better here. What do you think? |
|
@sarim 👍 I agree |
|
I didn't know there was a css property for that!! :O Let me know if i am missing or overthinking something. Thank you @sarim vai :) |
|
Yes, that will work. But will that increase DOM memory consumption or shit like that? I don't know :| Maybe we can chop it to like 100 chars then use css ellipsis just to be sure. |
|
Don't worry about memory for a mere title man 😄 |
|
Here title = content if we do that, imagine someone writes an essay :v |
|
hahaha... :v i was just trying to imagine that :P |
|
actually don't even need to check for 100 characters. its already cutting out first line of the content which i think should do just fine |
|
@sarim title ≠ content 😛 |
|
@leninhasda I think this will be better. if (!!content && content.trim()) {
return content.substr(0, titleLength);
}Also can you change |
|
updated @sarim vai |
|
one last fix :P please add |
if (!!content && content.trim()) {
return content.substr(0, titleLength); // Here content is not trimmed :)
} |
|
Yes i noticed that, but spaces won't be space when rendered in html :P |
|
ahh.. should have noticed that, stupid mistake on my end :( i have a question, i can't seem to figure it out which gulp plugin is concating js files and also renaming (both js & css) files to "app"? gulp-rev is adding the hash part, but what about "app" part? |
|
@leninhasda |
|
i thought |
also added "." in css link to make it relative