norcross / gravity-tooltips

Adds a custom field to each form element for tooltips
MIT License
74 stars 20 forks source link

Tooltips too wide => add option for hint--small/medium/large #31

Open Takkster opened 8 years ago

Takkster commented 8 years ago

Hi Norcross,

could you add an option for limiting the width of the tooltip? Some of mine are wider than the screen => not readable. There is already an option for it http://kushagragour.in/lab/hint/ - similar to the already existing option for colors: hint--small hint--medium hint--large tooltip-size

I tested it manually via CSS and it works well.

MadCowWeb commented 7 years ago

Perhaps a silly question, but I'm not sure where I can utilize these extra hint classes? Am I to add them to your lib/front.php?

norcross commented 7 years ago

I am looking to add them as a filter (if they aren't already)

norcross commented 7 years ago

Going to add a setting for this (the filter existed, but should be useful in general). Keep in mind that it will remove any line breaks added using html entities

davinian commented 7 years ago

I am trying to use long text, about 500 characters and it will only display in 1 long line, which means the text disrepairs off the page - I have tried switching theme and disabling other plugins but it still doesn't work. Is there a way of setting max-width in css?

davinian commented 7 years ago

Ignore me, I see I can use <br> &#xa;