@@ -96,7 +96,7 @@ const StatusBadge = ({
96
96
}
97
97
}
98
98
99
- const tooltipContent = downloadItem ? (
99
+ const tooltipContent = (
100
100
< ul >
101
101
{ downloadItem . map ( ( status , index ) => (
102
102
< li
@@ -111,8 +111,6 @@ const StatusBadge = ({
111
111
</ li >
112
112
) ) }
113
113
</ ul >
114
- ) : (
115
- mediaLinkDescription
116
114
) ;
117
115
118
116
const badgeDownloadProgress = (
@@ -134,11 +132,13 @@ const StatusBadge = ({
134
132
case MediaStatus . AVAILABLE :
135
133
return (
136
134
< Tooltip
137
- content = { inProgress && tooltipContent }
135
+ content = { inProgress ? tooltipContent : mediaLinkDescription }
138
136
className = { `${
139
137
inProgress && 'hidden max-h-96 w-96 overflow-y-auto sm:block'
140
138
} `}
141
- tooltipConfig = { { interactive : true , delayHide : 100 } }
139
+ tooltipConfig = { {
140
+ ...( inProgress && { interactive : true , delayHide : 100 } ) ,
141
+ } }
142
142
>
143
143
< Badge
144
144
badgeType = "success"
@@ -185,11 +185,13 @@ const StatusBadge = ({
185
185
case MediaStatus . PARTIALLY_AVAILABLE :
186
186
return (
187
187
< Tooltip
188
- content = { inProgress && tooltipContent }
188
+ content = { inProgress ? tooltipContent : mediaLinkDescription }
189
189
className = { `${
190
190
inProgress && 'hidden max-h-96 w-96 overflow-y-auto sm:block'
191
191
} `}
192
- tooltipConfig = { { interactive : true , delayHide : 100 } }
192
+ tooltipConfig = { {
193
+ ...( inProgress && { interactive : true , delayHide : 100 } ) ,
194
+ } }
193
195
>
194
196
< Badge
195
197
badgeType = "success"
@@ -236,18 +238,20 @@ const StatusBadge = ({
236
238
case MediaStatus . PROCESSING :
237
239
return (
238
240
< Tooltip
239
- content = { inProgress && tooltipContent }
241
+ content = { inProgress ? tooltipContent : mediaLinkDescription }
240
242
className = { `${
241
243
inProgress && 'hidden max-h-96 w-96 overflow-y-auto sm:block'
242
244
} `}
243
- tooltipConfig = { { interactive : true , delayHide : 100 } }
245
+ tooltipConfig = { {
246
+ ...( inProgress && { interactive : true , delayHide : 100 } ) ,
247
+ } }
244
248
>
245
249
< Badge
246
250
badgeType = "primary"
247
251
href = { mediaLink }
248
252
className = { `${
249
253
inProgress &&
250
- 'relative !bg-gray-700 !bg-opacity-80 !px-0 hover:!bg-gray-700'
254
+ 'relative !bg-gray-700 !bg-opacity-80 !px-0 hover:overflow-hidden hover: !bg-gray-700'
251
255
} overflow-hidden`}
252
256
>
253
257
{ inProgress && badgeDownloadProgress }
0 commit comments