diff --git a/src/components/ReportActionItem/ReportPreview.js b/src/components/ReportActionItem/ReportPreview.js index aa3c02b76fc0..eab9ef6081a9 100644 --- a/src/components/ReportActionItem/ReportPreview.js +++ b/src/components/ReportActionItem/ReportPreview.js @@ -14,6 +14,7 @@ import {showContextMenuForReport} from '@components/ShowContextMenuContext'; import Text from '@components/Text'; import withLocalize, {withLocalizePropTypes} from '@components/withLocalize'; import useLocalize from '@hooks/useLocalize'; +import useStyleUtils from '@hooks/useStyleUtils'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; import compose from '@libs/compose'; @@ -27,6 +28,7 @@ import * as ReportUtils from '@libs/ReportUtils'; import * as TransactionUtils from '@libs/TransactionUtils'; import reportActionPropTypes from '@pages/home/report/reportActionPropTypes'; import reportPropTypes from '@pages/reportPropTypes'; +import variables from '@styles/variables'; import * as IOU from '@userActions/IOU'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; @@ -119,6 +121,7 @@ const defaultProps = { function ReportPreview(props) { const theme = useTheme(); const styles = useThemeStyles(); + const {getLineHeightStyle} = useStyleUtils(); const {translate} = useLocalize(); const managerID = props.iouReport.managerID || 0; @@ -243,7 +246,7 @@ function ReportPreview(props) { - {getPreviewMessage()} + {getPreviewMessage()} {!iouSettled && hasErrors && ( ...whiteSpace.preWrap, color: theme.heading, fontSize: variables.fontSizeXLarge, - lineHeight: variables.lineHeightXXLarge, + lineHeight: variables.lineHeightXXXLarge, }, textHeadlineH1: { @@ -1585,7 +1585,7 @@ const styles = (theme: ThemeColors) => optionDisplayName: { fontFamily: fontFamily.EXP_NEUE, minHeight: variables.alternateTextHeight, - lineHeight: variables.lineHeightXLarge, + lineHeight: variables.lineHeightXXLarge, ...whiteSpace.noWrap, }, @@ -1605,7 +1605,7 @@ const styles = (theme: ThemeColors) => optionAlternateText: { minHeight: variables.alternateTextHeight, - lineHeight: variables.lineHeightXLarge, + lineHeight: variables.lineHeightXXLarge, }, optionAlternateTextCompact: { @@ -1734,7 +1734,7 @@ const styles = (theme: ThemeColors) => fontFamily: fontFamily.EXP_NEUE_BOLD, fontSize: variables.fontSizeNormal, fontWeight: fontWeightBold, - lineHeight: variables.lineHeightXLarge, + lineHeight: variables.lineHeightXXLarge, ...wordBreak.breakWord, }, @@ -3690,6 +3690,7 @@ const styles = (theme: ThemeColors) => fontFamily: isSelected ? fontFamily.EXP_NEUE_BOLD : fontFamily.EXP_NEUE, fontWeight: isSelected ? fontWeightBold : '400', color: isSelected ? theme.text : theme.textSupporting, + lineHeight: 14, } satisfies TextStyle), tabBackground: (hovered: boolean, isFocused: boolean, background: string) => ({