Skip to content

Commit 1953b6e

Browse files
authored
Add tooltip to comparison table row path (#2490)
1 parent 625f719 commit 1953b6e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

webview/src/plots/components/comparisonTable/ComparisonTableRow.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { ChevronDown, ChevronRight } from '../../../shared/components/icons'
1111
import { PlotsState } from '../../store'
1212
import { CopyButton } from '../../../shared/components/copyButton/CopyButton'
1313
import { isSelecting } from '../../../util/strings'
14+
import Tooltip from '../../../shared/components/tooltip/Tooltip'
1415

1516
export interface ComparisonTableRowProps {
1617
path: string
@@ -44,7 +45,13 @@ export const ComparisonTableRow: React.FC<ComparisonTableRowProps> = ({
4445
<div className={styles.rowPath}>
4546
<button className={styles.rowToggler} onClick={toggleIsShownState}>
4647
<Icon icon={isShown ? ChevronDown : ChevronRight} />
47-
<span className={styles.pathText}>{path}</span>
48+
<Tooltip
49+
content={path}
50+
placement="bottom-start"
51+
delay={[1000, 0]}
52+
>
53+
<span className={styles.pathText}>{path}</span>
54+
</Tooltip>
4855
</button>
4956
<CopyButton value={path} className={styles.copyButton} />
5057
</div>

0 commit comments

Comments
 (0)