From 567da606f33915aeac6aab54002705fb013bd30f Mon Sep 17 00:00:00 2001 From: Kurt Hutten Date: Sat, 14 Aug 2021 18:16:28 +1000 Subject: [PATCH] Bump SocialCard font sizes --- .../CaptureButton/CaptureButton.tsx | 2 +- .../SocialCardCell/SocialCardCell.tsx | 35 +++++++------------ 2 files changed, 13 insertions(+), 24 deletions(-) diff --git a/app/web/src/components/CaptureButton/CaptureButton.tsx b/app/web/src/components/CaptureButton/CaptureButton.tsx index ee547e4..6f1af62 100644 --- a/app/web/src/components/CaptureButton/CaptureButton.tsx +++ b/app/web/src/components/CaptureButton/CaptureButton.tsx @@ -64,7 +64,7 @@ const CaptureButton = ({ let imgBlob let image64 if (!isOpenScadImage) { - imgBlob = canvasToBlob(threeInstance, { width: 400, height: 300 }) + imgBlob = canvasToBlob(threeInstance, { width: 500, height: 375 }) image64 = blobTo64( await canvasToBlob(threeInstance, { width: 500, height: 522 }) ) diff --git a/app/web/src/components/SocialCardCell/SocialCardCell.tsx b/app/web/src/components/SocialCardCell/SocialCardCell.tsx index cb63267..f8d6a9b 100644 --- a/app/web/src/components/SocialCardCell/SocialCardCell.tsx +++ b/app/web/src/components/SocialCardCell/SocialCardCell.tsx @@ -41,6 +41,7 @@ export const Success = ({ }: CellSuccessProps) => { const image = userProject?.Project?.mainImage const gravatar = userProject?.image + const truncatedDescription = userProject?.Project?.description?.length > 150 ? (userProject?.Project?.description || '').slice(0, 145) + ' . . .' : (userProject?.Project?.description || '') return (
- {/* */}
{gravatar && ( - + )} -
+
{userProject?.userName}
-

+

{userProject?.Project?.title.replace(/-/g, ' ')}

-

- {(userProject?.Project?.description || '').slice(0, 150)} +

+ {truncatedDescription}

@@ -104,7 +99,7 @@ export const Success = ({
@@ -121,10 +116,10 @@ export const Success = ({ }, ].map(({ svg, title, count }, index) => (
- +
-
{count}
-
{title}
+
{count}
+
{title}
))} @@ -134,17 +129,11 @@ export const Success = ({
{/* Because of how specific these styles are to this heading/logo and it doesn't need to be replicated else where as well as it's very precise with the placement of "pre-alpha" I think it's appropriate. */}

CadHub

-
- pre-alpha -