OpenBazaar / openbazaar-web

OpenBazaar 2.0 browser-based client.
MIT License
10 stars 17 forks source link

Crossbrowser clamp styling or component #12

Open rmisio opened 5 years ago

rmisio commented 5 years ago

The current codebase has the .clamp (.clamp2, .clamp3...) class brought in from v2 desktop, but it seems a lot of that styling is webkit dependent. Let's adjust the styling to work on all modern browsers, if possible. If not, let's see if any community react components are out there that can help us. A big plus of such a component would be if it let's you know if it had to truncate or not, so that you can selectively apply behavior in that case (e.g. unlike desktop we could show a tooltip only if the text was truncated).