gravity-tooltips icon indicating copy to clipboard operation
gravity-tooltips copied to clipboard

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

Open Takkster opened this issue 9 years ago • 5 comments

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.

Takkster avatar Jun 01 '16 19:06 Takkster

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?

MadCowWeb avatar Aug 10 '16 16:08 MadCowWeb

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

norcross avatar Aug 10 '16 16:08 norcross

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

norcross avatar Aug 10 '16 17:08 norcross

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 avatar Dec 18 '16 21:12 davinian

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

davinian avatar Dec 18 '16 21:12 davinian