From 5ccb0887cb393eab39ffc2e4ff250e803904a037 Mon Sep 17 00:00:00 2001 From: Djordje Vlaisavljevic Date: Fri, 20 Oct 2023 14:46:42 +0200 Subject: [PATCH] Added shorter label for button on narrow screens refs https://github.com/TryGhost/Product/issues/4045 --- .../src/components/content/RepliesPagination.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/comments-ui/src/components/content/RepliesPagination.tsx b/apps/comments-ui/src/components/content/RepliesPagination.tsx index 5722a7e844..eef3c942d0 100644 --- a/apps/comments-ui/src/components/content/RepliesPagination.tsx +++ b/apps/comments-ui/src/components/content/RepliesPagination.tsx @@ -8,12 +8,14 @@ type Props = { }; const RepliesPagination: React.FC = ({loadMore, count}) => { const {t} = useAppContext(); - const text = count === 1 ? t('Show 1 more reply') : t('Show {{amount}} more replies', {amount: formatNumber(count)}); + const longText = count === 1 ? t('Show 1 more reply') : t('Show {{amount}} more replies', {amount: formatNumber(count)}); + const shortText = t('{{amount}} more', {amount: formatNumber(count)}); return (
);