diff --git a/src/components/ReportActionItem/TaskPreview.tsx b/src/components/ReportActionItem/TaskPreview.tsx
index 032be0a00b14..95528286d1e1 100644
--- a/src/components/ReportActionItem/TaskPreview.tsx
+++ b/src/components/ReportActionItem/TaskPreview.tsx
@@ -81,6 +81,7 @@ function TaskPreview({taskReportID, action, contextMenuAnchor, chatReportID, che
const avatarSize = CONST.AVATAR_SIZE.SMALL;
const isDeletedParentAction = ReportUtils.isCanceledTaskReport(taskReport, action);
const iconWrapperStyle = StyleUtils.getTaskPreviewIconWrapper(hasAssignee ? avatarSize : undefined);
+ const titleStyle = StyleUtils.getTaskPreviewTitleStyle(iconWrapperStyle.height, isTaskCompleted);
const shouldShowGreenDotIndicator = ReportUtils.isOpenTaskReport(taskReport, action) && ReportUtils.isReportManager(taskReport);
if (isDeletedParentAction) {
@@ -124,7 +125,7 @@ function TaskPreview({taskReportID, action, contextMenuAnchor, chatReportID, che
type={CONST.ICON_TYPE_AVATAR}
/>
)}
- {taskTitle}
+ {taskTitle}
{shouldShowGreenDotIndicator && (
diff --git a/src/styles/utils/index.ts b/src/styles/utils/index.ts
index 19feb9a0b81d..341f72aa64a2 100644
--- a/src/styles/utils/index.ts
+++ b/src/styles/utils/index.ts
@@ -1669,12 +1669,16 @@ const createStyleUtils = (theme: ThemeColors, styles: ThemeStyles) => ({
justifyContent: 'center',
}),
- getTaskPreviewIconWrapper: (avatarSize?: AvatarSizeName) => {
- return {
- height: avatarSize ? getAvatarSize(avatarSize) : variables.fontSizeNormalHeight,
- ...styles.justifyContentCenter,
- };
- },
+ getTaskPreviewIconWrapper: (avatarSize?: AvatarSizeName) => ({
+ height: avatarSize ? getAvatarSize(avatarSize) : variables.fontSizeNormalHeight,
+ ...styles.justifyContentCenter,
+ }),
+
+ getTaskPreviewTitleStyle: (iconHeight: number, isTaskCompleted: boolean): StyleProp => [
+ styles.flex1,
+ isTaskCompleted ? [styles.textSupporting, styles.textLineThrough] : [],
+ {marginTop: (iconHeight - variables.fontSizeNormalHeight) / 2},
+ ],
});
type StyleUtilsType = ReturnType;