@@ -4,6 +4,7 @@ import Link from "next/link";
4
4
import useSWR from "swr" ;
5
5
// hooks
6
6
import { useCycle , useCycleFilter , useIssues , useMember , useProject } from "hooks/store" ;
7
+ import { usePlatformOS } from "hooks/use-platform-os" ;
7
8
// ui
8
9
import { SingleProgressStats } from "components/core" ;
9
10
import {
@@ -46,6 +47,8 @@ interface IActiveCycleDetails {
46
47
export const ActiveCycleRoot : React . FC < IActiveCycleDetails > = observer ( ( props ) => {
47
48
// props
48
49
const { workspaceSlug, projectId } = props ;
50
+ // hooks
51
+ const { isMobile } = usePlatformOS ( ) ;
49
52
// store hooks
50
53
const {
51
54
issues : { fetchActiveCycleIssues } ,
@@ -197,7 +200,7 @@ export const ActiveCycleRoot: React.FC<IActiveCycleDetails> = observer((props) =
197
200
< span className = "h-5 w-5" >
198
201
< CycleGroupIcon cycleGroup = { cycleStatus } className = "h-4 w-4" />
199
202
</ span >
200
- < Tooltip tooltipContent = { activeCycle . name } position = "top-left" >
203
+ < Tooltip tooltipContent = { activeCycle . name } position = "top-left" isMobile = { isMobile } >
201
204
< h3 className = "break-words text-lg font-semibold" > { truncateText ( activeCycle . name , 70 ) } </ h3 >
202
205
</ Tooltip >
203
206
</ span >
@@ -325,14 +328,15 @@ export const ActiveCycleRoot: React.FC<IActiveCycleDetails> = observer((props) =
325
328
< PriorityIcon priority = { issue . priority } withContainer size = { 12 } />
326
329
327
330
< Tooltip
331
+ isMobile = { isMobile }
328
332
tooltipHeading = "Issue ID"
329
333
tooltipContent = { `${ currentProjectDetails ?. identifier } -${ issue . sequence_id } ` }
330
334
>
331
335
< span className = "flex-shrink-0 text-xs text-custom-text-200" >
332
336
{ currentProjectDetails ?. identifier } -{ issue . sequence_id }
333
337
</ span >
334
338
</ Tooltip >
335
- < Tooltip position = "top-left" tooltipContent = { issue . name } >
339
+ < Tooltip position = "top-left" tooltipContent = { issue . name } isMobile = { isMobile } >
336
340
< span className = "text-[0.825rem] text-custom-text-100" > { truncateText ( issue . name , 30 ) } </ span >
337
341
</ Tooltip >
338
342
</ div >
@@ -345,7 +349,7 @@ export const ActiveCycleRoot: React.FC<IActiveCycleDetails> = observer((props) =
345
349
buttonVariant = "background-with-text"
346
350
/>
347
351
{ issue . target_date && (
348
- < Tooltip tooltipHeading = "Target Date" tooltipContent = { renderFormattedDate ( issue . target_date ) } >
352
+ < Tooltip tooltipHeading = "Target Date" tooltipContent = { renderFormattedDate ( issue . target_date ) } isMobile = { isMobile } >
349
353
< div className = "flex h-full cursor-not-allowed items-center gap-1.5 rounded bg-custom-background-80 px-2 py-0.5 text-xs" >
350
354
< CalendarCheck className = "h-3 w-3 flex-shrink-0" />
351
355
< span className = "text-xs" > { renderFormattedDateWithoutYear ( issue . target_date ) } </ span >
0 commit comments