Fix layout issue
This commit is contained in:
@@ -2,7 +2,6 @@ import React, { memo } from 'react'
|
|||||||
import { fade } from '@material-ui/core/styles'
|
import { fade } from '@material-ui/core/styles'
|
||||||
import { Fade, Grow, Paper, Popper, Theme, Typography, withTheme } from '@material-ui/core'
|
import { Fade, Grow, Paper, Popper, Theme, Typography, withTheme } from '@material-ui/core'
|
||||||
import { Tooltip } from './Model'
|
import { Tooltip } from './Model'
|
||||||
const { Hint } = require('react-vis')
|
|
||||||
|
|
||||||
function TooltipComponent(props: { tooltip?: Tooltip; theme: Theme }) {
|
function TooltipComponent(props: { tooltip?: Tooltip; theme: Theme }) {
|
||||||
const { tooltip } = props
|
const { tooltip } = props
|
||||||
@@ -11,7 +10,6 @@ function TooltipComponent(props: { tooltip?: Tooltip; theme: Theme }) {
|
|||||||
style={Boolean(tooltip) ? { transition: 'all 0.1s ease-out' } : undefined}
|
style={Boolean(tooltip) ? { transition: 'all 0.1s ease-out' } : undefined}
|
||||||
open={Boolean(tooltip)}
|
open={Boolean(tooltip)}
|
||||||
transition={true}
|
transition={true}
|
||||||
keepMounted={true}
|
|
||||||
placement="top"
|
placement="top"
|
||||||
anchorEl={tooltip && tooltip.element}
|
anchorEl={tooltip && tooltip.element}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user