Skip to content

Commit 297f66a

Browse files
authored
feat(report): add tooltip for download button (#814)
1 parent f3fcbea commit 297f66a

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

packages/visualizer/src/component/player.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -855,14 +855,16 @@ export function Player(props?: {
855855
)}
856856

857857
{props?.reportFileContent ? (
858-
<div
859-
className="status-icon"
860-
onMouseEnter={() => setMouseOverStatusIcon(true)}
861-
onMouseLeave={() => setMouseOverStatusIcon(false)}
862-
onClick={() => downloadReport(props.reportFileContent!)}
863-
>
864-
<DownloadOutlined color="#333" />
865-
</div>
858+
<Tooltip title="Download Report">
859+
<div
860+
className="status-icon"
861+
onMouseEnter={() => setMouseOverStatusIcon(true)}
862+
onMouseLeave={() => setMouseOverStatusIcon(false)}
863+
onClick={() => downloadReport(props.reportFileContent!)}
864+
>
865+
<DownloadOutlined color="#333" />
866+
</div>
867+
</Tooltip>
866868
) : null}
867869
<Tooltip title={isRecording ? 'Generating...' : 'Export Video'}>
868870
<div

0 commit comments

Comments
 (0)