Skip to content

Commit

Permalink
* tooltip: fix line wrap not work in tooltip without content.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Oct 14, 2024
1 parent 796fcd5 commit afadc30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tooltip/src/style/tooltip.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.tooltip {
@apply -z-tooltip -rounded -bg-[--tooltip-bg] -border-[--tooltip-color] -text-[--tooltip-text] -py-1 -px-2 -text-xs -max-w-md;
@apply -z-tooltip -rounded -bg-[--tooltip-bg] -border-[--tooltip-color] -text-[--tooltip-text] -py-1 -px-2 -text-xs -max-w-md -whitespace-pre-wrap;
}
.tooltip:not(.white) > .arrow {
@apply -border-0;
Expand All @@ -20,5 +20,5 @@
@apply --mr-1;
}
.tooltip-content {
@apply -p-1 -whitespace-pre-wrap;
@apply -p-1;
}

0 comments on commit afadc30

Please sign in to comment.