1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Make tooltips in @withTooltip narrower

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2020-10-01 14:46:01 +03:00
parent cb4f47e18d
commit 0b903201a4

View File

@ -28,6 +28,7 @@ export function withTooltip<T extends React.ComponentType<any>>(Target: T): T {
const tooltipProps: TooltipProps = { const tooltipProps: TooltipProps = {
targetId: tooltipId, targetId: tooltipId,
tooltipOnParentHover: tooltipOverrideDisabled, tooltipOnParentHover: tooltipOverrideDisabled,
formatters: { narrow: true },
...(isReactNode(tooltip) ? { children: tooltip } : tooltip), ...(isReactNode(tooltip) ? { children: tooltip } : tooltip),
}; };
targetProps.id = tooltipId; targetProps.id = tooltipId;