mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Fix tooltip placement bugs by upgrading Popper
This commit is contained in:
@@ -7,6 +7,7 @@ import { noop } from 'lodash';
|
||||
import { Manager, Reference, Popper } from 'react-popper';
|
||||
import { Theme, themeClassName } from '../util/theme';
|
||||
import { multiRef } from '../util/multiRef';
|
||||
import { offsetDistanceModifier } from '../util/popperUtil';
|
||||
|
||||
type EventWrapperPropsType = {
|
||||
children: React.ReactNode;
|
||||
@@ -96,7 +97,7 @@ export const Tooltip: React.FC<PropsType> = ({
|
||||
</TooltipEventWrapper>
|
||||
)}
|
||||
</Reference>
|
||||
<Popper placement={direction}>
|
||||
<Popper placement={direction} modifiers={[offsetDistanceModifier(12)]}>
|
||||
{({ arrowProps, placement, ref, style }) =>
|
||||
showTooltip && (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user