From 13bad88bafb6ece6180f8a00e7da95b56670b8c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20der=20Winden?= Date: Wed, 10 Jul 2024 11:22:14 +0200 Subject: [PATCH] Fixed comments UI regression (#20574) Fixes https://linear.app/tryghost/issue/DES-433/mobile-regression-in-comments-ui Comments modal was previously using isMobile helper, which only works on pageload. Code is now adjusted to use Tailwind media queries to show/hide example profiles at the right resolutions. --- .../src/components/popups/AddDetailsPopup.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/apps/comments-ui/src/components/popups/AddDetailsPopup.tsx b/apps/comments-ui/src/components/popups/AddDetailsPopup.tsx index 9cc5eea656..10c5e70abc 100644 --- a/apps/comments-ui/src/components/popups/AddDetailsPopup.tsx +++ b/apps/comments-ui/src/components/popups/AddDetailsPopup.tsx @@ -118,14 +118,12 @@ const AddDetailsPopup = (props: Props) => { return (
- {!isMobile() && -
-
- {renderExampleProfiles()} -
+
+
+ {renderExampleProfiles()}
- } -
+
+

{t('Complete your profile')}.

{t('Add context to your comment, share your name and expertise to foster a healthy discussion.')}