mirror of
https://github.com/apache/superset.git
synced 2026-05-07 08:54:23 +00:00
chore(Tooltip): Upgrade Tooltip to Ant Design 5 (#31182)
Co-authored-by: Diego Pucci <diegopucci.me@gmail.com>
This commit is contained in:
@@ -28,7 +28,7 @@ const StyledTooltip = (props: any) => {
|
||||
{({ css }) => (
|
||||
<Tooltip
|
||||
overlayClassName={css`
|
||||
.ant-tooltip-inner {
|
||||
.antd5-tooltip-inner {
|
||||
max-width: ${theme.gridUnit * 125}px;
|
||||
word-wrap: break-word;
|
||||
text-align: center;
|
||||
|
||||
@@ -42,6 +42,7 @@ import { IconTooltip } from 'src/components/IconTooltip';
|
||||
import ModalTrigger from 'src/components/ModalTrigger';
|
||||
import Loading from 'src/components/Loading';
|
||||
import useEffectEvent from 'src/hooks/useEffectEvent';
|
||||
import { ActionType } from 'src/types/Action';
|
||||
import ColumnElement, { ColumnKeyTypeType } from '../ColumnElement';
|
||||
import ShowSQL from '../ShowSQL';
|
||||
|
||||
@@ -326,7 +327,7 @@ const TableElement = ({ table, ...props }: TableElementProps) => {
|
||||
|
||||
const renderHeader = () => {
|
||||
const element: HTMLInputElement | null = tableNameRef.current;
|
||||
let trigger: string[] = [];
|
||||
let trigger = [] as ActionType[];
|
||||
if (element && element.offsetWidth < element.scrollWidth) {
|
||||
trigger = ['hover'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user