mirror of https://github.com/apache/superset.git
fix(sqllab): Hover tooltip flashes in SQL Lab (#17068)
* Changed SQL Lab result column header-style width to max-content * Changed .ant-tooltip-open to block and tooltip placement to topLeft * Moved tooltip style changes to local implementation instead of global
This commit is contained in:
parent
7a2e39449a
commit
635898a76d
|
@ -359,7 +359,12 @@ export default class FilterableTable extends PureComponent<
|
|||
? 'header-style-disabled'
|
||||
: 'header-style';
|
||||
return (
|
||||
<Tooltip id="header-tooltip" title={label}>
|
||||
<Tooltip
|
||||
id="header-tooltip"
|
||||
title={label}
|
||||
placement="topLeft"
|
||||
css={{ display: 'block' }}
|
||||
>
|
||||
<div className={className}>
|
||||
{label}
|
||||
{sortBy === dataKey && (
|
||||
|
@ -385,7 +390,13 @@ export default class FilterableTable extends PureComponent<
|
|||
? 'header-style-disabled'
|
||||
: 'header-style';
|
||||
return (
|
||||
<Tooltip key={key} id="header-tooltip" title={label}>
|
||||
<Tooltip
|
||||
key={key}
|
||||
id="header-tooltip"
|
||||
title={label}
|
||||
placement="topLeft"
|
||||
css={{ display: 'block' }}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
...style,
|
||||
|
|
Loading…
Reference in New Issue