bmarian / token-tooltip-alt

A module that adds a tooltip next to the currently hovered token to show some useful information for players and DMs.
MIT License
9 stars 15 forks source link

[FEATURE REQUEST] Line breaks in tooltips #108

Open MarlQ opened 1 year ago

MarlQ commented 1 year ago

Amongst other things, I use the tooltips for showing some important notes for NPCs. Unfortunately, the tooltips ignore line breaks ( \n ) from text boxes, making bullet points hard to read.

This can easily be fixed by the following css:

.token-tooltip-alt-tooltip-item:not(.title) {
    white-space: pre-line;
}