From dba8789ac1034a12390dbf23a27a53f63e10bc28 Mon Sep 17 00:00:00 2001 From: miko Date: Fri, 19 Apr 2024 20:11:14 +0300 Subject: [PATCH] Move Tooltip title entry to better place --- ui/component/streamClaimRenderInline/view.jsx | 4 ++++ ui/component/viewers/imageViewer.jsx | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ui/component/streamClaimRenderInline/view.jsx b/ui/component/streamClaimRenderInline/view.jsx index 66b8c2e467..94be1a654e 100644 --- a/ui/component/streamClaimRenderInline/view.jsx +++ b/ui/component/streamClaimRenderInline/view.jsx @@ -126,6 +126,7 @@ class StreamClaimRenderInline extends React.PureComponent { { webDownloadClaim(streamingUrl, 'file', false); }} @@ -147,6 +148,7 @@ class StreamClaimRenderInline extends React.PureComponent { { webDownloadClaim(streamingUrl, 'file', false); }} @@ -170,6 +172,7 @@ class StreamClaimRenderInline extends React.PureComponent { { webDownloadClaim(streamingUrl, 'file', false); }} @@ -187,6 +190,7 @@ class StreamClaimRenderInline extends React.PureComponent { { webDownloadClaim(streamingUrl, 'file', false); }} diff --git a/ui/component/viewers/imageViewer.jsx b/ui/component/viewers/imageViewer.jsx index 5932c0f4e9..c882fd4efa 100644 --- a/ui/component/viewers/imageViewer.jsx +++ b/ui/component/viewers/imageViewer.jsx @@ -7,11 +7,12 @@ import Tooltip from 'component/common/tooltip'; type Props = { source: string, + title: ?string, onClick: () => void, }; function ImageViewer(props: Props) { - const { source, onClick } = props; + const { source, title, onClick } = props; const [loadingError, setLoadingError] = React.useState(false); return ( @@ -27,7 +28,7 @@ function ImageViewer(props: Props) { {!onClick ? ( setLoadingError(true)} /> ) : ( - + setLoadingError(true)} onClick={onClick} /> )}