@@ -6,9 +6,11 @@ import useDelegateAccountID from '@hooks/useDelegateAccountID';
66import useEnvironment from '@hooks/useEnvironment' ;
77import useLocalize from '@hooks/useLocalize' ;
88import useOnyx from '@hooks/useOnyx' ;
9+ import useResponsiveLayout from '@hooks/useResponsiveLayout' ;
910
1011import { openLink } from '@libs/actions/Link' ;
1112import { explain } from '@libs/actions/Report' ;
13+ import { canUseTouchScreen } from '@libs/DeviceCapabilities' ;
1214import { getParticipantsPersonalDetails } from '@libs/PersonalDetailsUtils' ;
1315import { hasReasoning } from '@libs/ReportActionsUtils' ;
1416
@@ -46,6 +48,7 @@ function ReportActionItemMessageWithExplain({message, action, childReport, origi
4648 const { translate} = useLocalize ( ) ;
4749 const personalDetail = useCurrentUserPersonalDetails ( ) ;
4850 const { environmentURL} = useEnvironment ( ) ;
51+ const { shouldUseNarrowLayout} = useResponsiveLayout ( ) ;
4952 const [ introSelected ] = useOnyx ( ONYXKEYS . NVP_INTRO_SELECTED ) ;
5053 const [ isSelfTourViewed ] = useOnyx ( ONYXKEYS . NVP_ONBOARDING , { selector : hasSeenTourSelector } ) ;
5154 const [ betas ] = useOnyx ( ONYXKEYS . BETAS ) ;
@@ -83,7 +86,7 @@ function ReportActionItemMessageWithExplain({message, action, childReport, origi
8386 < ReportActionItemBasicMessage >
8487 < RenderHTML
8588 html = { `<comment><muted-text>${ computedMessage } </muted-text></comment>` }
86- isSelectable = { false }
89+ isSelectable = { ! canUseTouchScreen ( ) || ! shouldUseNarrowLayout }
8790 onLinkPress = { handleLinkPress }
8891 />
8992 </ ReportActionItemBasicMessage >
0 commit comments