-
Notifications
You must be signed in to change notification settings - Fork 650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for new dashboard texts #2499
Conversation
The previous value was not enough for description with large characters
Only texts? In that case, not much to say, 👍. |
@@ -7,7 +7,7 @@ var LikesView = require('../../new_common/views/likes/view'); | |||
var Utils = require('cdb.Utils'); | |||
cdb.admin = require('cdb.admin'); | |||
|
|||
var SHORT_DES = 85; | |||
var SHORT_DES = 45; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No css solution?
👍 |
IMHO 45 characters for map description is too short. |
Yes, it's short, and as I wrote on the related issue it's sub-optimal but there is no perfect solution. The CSS approach works perfect on webkit, but for the rest there would be no ellipsis (or other indicator of more text). If you're fine with the following scenario I'm happy to change it to a CSS solution: |
How about to adding a white gradient at the end? |
+1 @xavijam love your comment |
Use gradient to indicate more text on non-webkit browsers, since other non-webkit browsers don’t support multiline text-overflow ellipsis.
retest this please |
@viddo one question, what do you think about remove the gradient for non-webkit browsers? really if we can show the ellipsis, i think we dont need the gradient |
But the ellipsis is only available for webkit, so I suggest to leave the gradient. |
Sorry... it was my fault. I mean remove the gradient for webkit browsers ;) |
and one more thing did you test this when you selected the map? you should change the color of the gradient. :) |
Since only applied for MapCard anyway, and need to know the colors to be able to match hover/selected states. Changed transparency to rgba values too to work on firefox
@piensaenpixel: Fixed the hover/selected states (good catch!) in the last commit ffb1855. |
Container must have a width for the text-overflow to work
Render on one row
@xavijam fixed privacy indicator in FF as well as the map card titles that was not ellipsed properly there either, see last two commits. |
🇺🇸 |
Frontend tests were OK 👍 (details) |
🇺🇸 |
description with a larger characters:
description with a smaller characters: