From 006d9021167ecb4521423507c8ccd96190d560f3 Mon Sep 17 00:00:00 2001 From: Djordje Vlaisavljevic Date: Thu, 21 Sep 2023 16:11:45 +0100 Subject: [PATCH] Updated recommendations portal modal design refs https://github.com/TryGhost/Product/issues/3898 --- .../components/pages/RecommendationsPage.js | 32 +++++++++++++------ 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/apps/portal/src/components/pages/RecommendationsPage.js b/apps/portal/src/components/pages/RecommendationsPage.js index 4670c1bccc..df1e64ceed 100644 --- a/apps/portal/src/components/pages/RecommendationsPage.js +++ b/apps/portal/src/components/pages/RecommendationsPage.js @@ -21,7 +21,7 @@ export const RecommendationsPageStyles = ` .gh-portal-recommendation-item-header { display: flex; align-items: center; - gap: 8px; + gap: 10px; cursor: pointer; } @@ -48,9 +48,10 @@ export const RecommendationsPageStyles = ` .gh-portal-recommendation-item .gh-portal-recommendation-description-container p { font-size: 1.35rem; - padding-left: 28px; + padding-left: 30px; font-weight: 400; letter-spacing: 0.1px; + margin-top: 4px; } .gh-portal-recommendation-description-hidden { @@ -82,23 +83,28 @@ export const RecommendationsPageStyles = ` opacity: 0.8; } + .gh-portal-recommendation-item .gh-portal-btn-list { + height: 28px; + } + .gh-portal-recommendation-subscribed { display: flex; + padding-left: 30px; align-items: center; - gap: 6px; - font-size: 1.5rem; - letter-spacing: 0.3px; + gap: 4px; + font-size: 1.35rem; + font-weight: 400; + letter-spacing: 0.1px; line-height: 1.3em; animation: 0.5s ease-in-out fadeIn; } .gh-portal-recommendation-subscribed.with-reason { position: absolute; - margin-top: 5px; } .gh-portal-recommendation-subscribed.without-reason { - margin-top: 10px; + margin-top: 5px; } .gh-portal-recommendation-subscribed span { @@ -106,7 +112,9 @@ export const RecommendationsPageStyles = ` } .gh-portal-recommendation-checkmark-icon { - height: 20px; + height: 16px; + width: 16px; + padding: 0 2px; color: #30cf43; } @@ -114,6 +122,10 @@ export const RecommendationsPageStyles = ` position: relative !important; height: 24px; } + + .gh-portal-recommendation-item-action { + min-height: 28px; + } `; // Fisher-Yates shuffle @@ -238,11 +250,11 @@ const RecommendationItem = (recommendation) => {
- {subscribed &&
{t('Verification link sent, check your inbox')}
} + {subscribed &&
{t('Verification link sent, check your inbox')}
} {reason &&

{reason}

}
-
+
{!subscribed && loading && } {!subscribed && !loading && allowOneClickSubscribe && }