diff --git a/src/app/components/client/PercentageChart.tsx b/src/app/components/client/PercentageChart.tsx index fa7f3707b05..77a70d44a5b 100644 --- a/src/app/components/client/PercentageChart.tsx +++ b/src/app/components/client/PercentageChart.tsx @@ -25,10 +25,9 @@ export const PercentageChart = (props: WelcomeToPremiumProps) => { const circumference = 2 * Math.PI * radius; const sliceBorderWidth = 0; const headingNumberSize = diameter / 6; - const headingPercentageSize = diameter / 8; - const headingLabelSize = headingPercentageSize / 2; + const headingPercentageSize = diameter / 10; + const headingLabelSize = headingNumberSize / 3; const headingGap = 4; - const headingXOffset = 5; const slices = percentages.map(([label, percent], index) => { const percentOffset = percentages @@ -76,29 +75,28 @@ export const PercentageChart = (props: WelcomeToPremiumProps) => { className={styles.gutter} /> {slices} - {l10n.getFragment("exposure-reduction-chart-heading", { - elems: { - nr: ( - - ), - percent: ( - - ), - }, - vars: { nr: props.exposureReduction }, - })} + + {l10n.getFragment("exposure-reduction-chart-heading", { + elems: { + nr: ( + + ), + percent: ( + + ), + }, + vars: { + nr: props.exposureReduction, + }, + })} + {l10n.getFragment("exposure-reduction-chart-explanation", { elems: { label_line_1: (