mirror of
https://github.com/apache/superset.git
synced 2024-09-11 16:19:43 -04:00
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-disabled'
|
||||||
: 'header-style';
|
: 'header-style';
|
||||||
return (
|
return (
|
||||||
<Tooltip id="header-tooltip" title={label}>
|
<Tooltip
|
||||||
|
id="header-tooltip"
|
||||||
|
title={label}
|
||||||
|
placement="topLeft"
|
||||||
|
css={{ display: 'block' }}
|
||||||
|
>
|
||||||
<div className={className}>
|
<div className={className}>
|
||||||
{label}
|
{label}
|
||||||
{sortBy === dataKey && (
|
{sortBy === dataKey && (
|
||||||
@ -385,7 +390,13 @@ export default class FilterableTable extends PureComponent<
|
|||||||
? 'header-style-disabled'
|
? 'header-style-disabled'
|
||||||
: 'header-style';
|
: 'header-style';
|
||||||
return (
|
return (
|
||||||
<Tooltip key={key} id="header-tooltip" title={label}>
|
<Tooltip
|
||||||
|
key={key}
|
||||||
|
id="header-tooltip"
|
||||||
|
title={label}
|
||||||
|
placement="topLeft"
|
||||||
|
css={{ display: 'block' }}
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
...style,
|
...style,
|
||||||
|
Loading…
Reference in New Issue
Block a user