@@ -9,7 +9,7 @@ import { toggle } from 'radash';
99import { type MouseEvent , type SyntheticEvent , useMemo , useState } from 'react' ;
1010import { Trans , useTranslation } from 'react-i18next' ;
1111import { match } from 'ts-pattern' ;
12- import { Button , Card , cn , MenuCommand , Panel , Switch , Tag , TagProps , Typo } from 'ui-design-system' ;
12+ import { Button , Card , cn , MenuCommand , Panel , Switch , Tag , TagProps , Tooltip , Typo } from 'ui-design-system' ;
1313import { Icon } from 'ui-icons' ;
1414import {
1515 DownloadCsvTemplate ,
@@ -66,12 +66,16 @@ export function PanelAddCsv({
6666 < div onClick = { stopRowInteraction } onPointerDown = { stopRowInteraction } >
6767 { objectTypes . length > 1 ? (
6868 < MenuCommand . Menu open = { menuOpen } onOpenChange = { setMenuOpen } >
69- < MenuCommand . Trigger >
70- < Button variant = "primary" appearance = "stroked" onClick = { ( e ) => e . stopPropagation ( ) } >
71- < Icon icon = "plus" className = "size-4" />
72- < span className = "truncate" > { t ( 'continuousScreening:configurations.csv.button.addCsv' ) } </ span >
73- </ Button >
74- </ MenuCommand . Trigger >
69+ < Tooltip . Default content = { t ( 'continuousScreening:configurations.csv.button.addCsv' ) } >
70+ < span className = "inline-flex" >
71+ < MenuCommand . Trigger >
72+ < Button variant = "primary" appearance = "stroked" onClick = { ( e ) => e . stopPropagation ( ) } >
73+ < Icon icon = "plus" className = "size-4" />
74+ < span > csv</ span >
75+ </ Button >
76+ </ MenuCommand . Trigger >
77+ </ span >
78+ </ Tooltip . Default >
7579 < MenuCommand . Content align = "end" sideOffset = { 4 } >
7680 < MenuCommand . List >
7781 < MenuCommand . Group heading = { t ( 'upload:select_one_table' ) } >
@@ -92,10 +96,12 @@ export function PanelAddCsv({
9296 </ MenuCommand . Content >
9397 </ MenuCommand . Menu >
9498 ) : (
95- < Button variant = "primary" appearance = "stroked" onClick = { handleAddClick } >
96- < Icon icon = "plus" className = "size-4" />
97- { t ( 'continuousScreening:configurations.csv.button.addCsv' ) }
98- </ Button >
99+ < Tooltip . Default content = { t ( 'continuousScreening:configurations.csv.button.addCsv' ) } >
100+ < Button variant = "primary" appearance = "stroked" onClick = { handleAddClick } >
101+ < Icon icon = "plus" className = "size-4" />
102+ < span > csv</ span >
103+ </ Button >
104+ </ Tooltip . Default >
99105 ) }
100106
101107 < Panel . Root open = { panelOpen } onOpenChange = { handlePanelOpenChange } >
0 commit comments