Always wrap in tooltip

This commit is contained in:
Sinclair Chen 2022-08-19 15:22:07 -07:00
parent d5b922affd
commit 7fdcb78ae8

View File

@ -79,7 +79,7 @@ export function Tooltip(props: {
role="tooltip" role="tooltip"
ref={floating} ref={floating}
style={{ position: strategy, top: y ?? 0, left: x ?? 0 }} style={{ position: strategy, top: y ?? 0, left: x ?? 0 }}
className="z-10 max-w-xs rounded bg-slate-700 px-2 py-1 text-center text-sm text-white" className="z-10 max-w-xs whitespace-normal rounded bg-slate-700 px-2 py-1 text-center text-sm text-white"
{...getFloatingProps()} {...getFloatingProps()}
> >
{text} {text}