Home > other >  Is there a simple way to truncate tag text with an ellipses and add a link to delete at the end?
Is there a simple way to truncate tag text with an ellipses and add a link to delete at the end?

Time:08-11

I'm trying to smarten up the tags in my rails site. As of now, the link to delete appears on hover (achieved with CSS), but the table content would shift to accommodate the link. The idea to truncate the text to make space for the link was brought up. example goal

From what I've read I don't think this can be done with CSS only. So I'm trying to recall JavaScript event listeners from my Intro days and I'm hoping someone can help me figure this out? Thanks

  • Related