Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/ProductTrainingContext/TOOLTIPS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ const TOOLTIPS: Record<ProductTrainingTooltipName, TooltipData> = {
},
[SCAN_TEST_TOOLTIP]: {
content: [
{text: 'productTrainingTooltip.scanTestTooltip.part1', isBold: false},
{text: 'productTrainingTooltip.scanTestTooltip.part2', isBold: true},
{text: 'productTrainingTooltip.scanTestTooltip.part1', isBold: true},
{text: 'productTrainingTooltip.scanTestTooltip.part2', isBold: false},
],
onHideTooltip: () => dismissProductTraining(SCAN_TEST_TOOLTIP),
name: SCAN_TEST_TOOLTIP,
Expand Down
5 changes: 1 addition & 4 deletions src/components/ProductTrainingContext/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,10 @@ const useProductTrainingContext = (tooltipName: ProductTrainingTooltipName, shou
styles.alignItemsCenter,
styles.flexRow,
tooltip?.shouldRenderActionButtons ? styles.justifyContentStart : styles.justifyContentCenter,
styles.flexWrap,
styles.textAlignCenter,
styles.gap3,
styles.pv2,
styles.ph1,
styles.ph2,
]}
>
<Icon
Expand Down Expand Up @@ -354,11 +353,9 @@ const useProductTrainingContext = (tooltipName: ProductTrainingTooltipName, shou
styles.flexRow,
styles.justifyContentStart,
styles.justifyContentCenter,
styles.flexWrap,
styles.textAlignCenter,
styles.gap3,
styles.pv2,
styles.ph1,
styles.productTrainingTooltipText,
styles.textWrap,
styles.mw100,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tooltip/GenericTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type {GenericTooltipProps} from './types';
function GenericTooltip({
children,
numberOfLines = CONST.TOOLTIP_MAX_LINES,
maxWidth = variables.sideBarWidth,
maxWidth = variables.sideBarWidth - 2 * variables.uploadViewMargin,
text = '',
renderTooltipContent,
renderTooltipContentKey = [],
Expand Down
4 changes: 2 additions & 2 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6328,8 +6328,8 @@ const translations = {
part3: ' here.',
},
scanTestTooltip: {
part1: 'Want to see how Scan works?',
part2: ' Try a test receipt!',
part1: 'Scan our test receipt',
part2: ' to see how it works!',
part3: 'Choose our',
part4: ' test manager',
part5: ' to try it out!',
Expand Down
4 changes: 2 additions & 2 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6853,8 +6853,8 @@ const translations = {
part3: '.',
},
scanTestTooltip: {
part1: '¿Quieres ver cómo funciona Escanear?',
part2: '¡Prueba con un recibo de prueba!',
part1: '¡Escanea nuestro recibo de prueba',
part2: ' para ver cómo funciona!',
part3: '¡Elige a',
part4: ' nuestro gerente',
part5: ' de prueba para probarlo!',
Expand Down
7 changes: 4 additions & 3 deletions src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1109,9 +1109,9 @@ const styles = (theme: ThemeColors) =>
borderWidth: isSmallScreenWidth ? 0 : 2,
borderColor: theme.borderFocus,
borderStyle: 'dotted',
marginBottom: 20,
marginLeft: 20,
marginRight: 20,
marginBottom: variables.uploadViewMargin,
marginLeft: variables.uploadViewMargin,
marginRight: variables.uploadViewMargin,
justifyContent: 'center',
alignItems: 'center',
paddingVertical: 40,
Expand Down Expand Up @@ -4201,6 +4201,7 @@ const styles = (theme: ThemeColors) =>
fontSize: variables.fontSizeLabel,
color: theme.textReversed,
lineHeight: variables.lineHeightLarge,
flexShrink: 1,
},

quickReactionsContainer: {
Expand Down
1 change: 1 addition & 0 deletions src/styles/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export default {
iosSafeAreaInsetsPercentage: 0.7,
androidSafeAreaInsetsPercentage: 1,
sideBarWidth: 375,
uploadViewMargin: 20,
sideBarWithLHBWidth: 320,
navigationTabBarSize: 72,
pdfPageMaxWidth: 992,
Expand Down