Skip to content

Commit

Permalink
fix(sqllab): Hover tooltip flashes in SQL Lab (#17068)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
lyndsiWilliams authored Oct 14, 2021
1 parent 7a2e394 commit 635898a
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 && (
Expand All @@ -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,
Expand Down

0 comments on commit 635898a

Please sign in to comment.