flowbite icon indicating copy to clipboard operation
flowbite copied to clipboard

Tooltips are causing a horizontal scroll bar to show on my page.

Open sgehrman opened this issue 1 year ago • 4 comments

If I show the tooltip once, it goes away.

How do I fix this?

gnome-shell-screenshot-T56XQ1

sgehrman avatar Aug 11 '22 01:08 sgehrman

tooltips on on those numbers in the white bubble thing.

sgehrman avatar Aug 11 '22 01:08 sgehrman

gnome-shell-screenshot-JUOVQ1

sgehrman avatar Aug 11 '22 01:08 sgehrman

left: 2693.21px is the problem.

<div data-testid="tooltip" tabindex="-1" class="absolute inline-block rounded-lg py-2 px-3 text-sm font-medium shadow-sm transition-opacity duration-300 invisible opacity-0 bg-gray-900 text-white dark:bg-gray-700" role="tooltip" id="floating-ui-0" style="position: absolute;top: 411px;left: 2693.21px;"><div class="relative z-20"><div class="flex flex-col items-center"><div>Number of sales</div><div>last 7 days</div></div></div><div class="absolute z-10 h-2 w-2 rotate-45 bg-gray-900 dark:bg-gray-700" data-testid="tooltip-arrow" style="top: -4px; left: 60px;">&nbsp;</div></div>

sgehrman avatar Aug 11 '22 01:08 sgehrman

I switched to rc-tooltips....

sgehrman avatar Aug 12 '22 02:08 sgehrman

Hello @sgehrman,

I think that for your use case it's best to use the Popover component because it has a lot more content than just text.

zoltanszogyenyi avatar Dec 07 '22 15:12 zoltanszogyenyi