From c26ee13e3e7b6a15ef8805ea5c26b51317d855a8 Mon Sep 17 00:00:00 2001 From: nikek Date: Mon, 12 Oct 2020 10:52:03 +0200 Subject: [PATCH 1/2] Move card header bg to up contrast, fix #2558 --- plugins/scaffolder/src/components/TemplateCard/TemplateCard.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/scaffolder/src/components/TemplateCard/TemplateCard.tsx b/plugins/scaffolder/src/components/TemplateCard/TemplateCard.tsx index 470fef1148..04ad8b0959 100644 --- a/plugins/scaffolder/src/components/TemplateCard/TemplateCard.tsx +++ b/plugins/scaffolder/src/components/TemplateCard/TemplateCard.tsx @@ -25,6 +25,7 @@ const useStyles = makeStyles(theme => ({ padding: theme.spacing(2, 2, 6), backgroundImage: (props: { backgroundImage: string }) => props.backgroundImage, + backgroundPosition: '0 center', }, content: { padding: theme.spacing(2), From 68497758fcc3094fbd98ac636ce87447582a1b30 Mon Sep 17 00:00:00 2001 From: nikek Date: Mon, 12 Oct 2020 11:02:16 +0200 Subject: [PATCH 2/2] remove unnecessary center keyword --- plugins/scaffolder/src/components/TemplateCard/TemplateCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/scaffolder/src/components/TemplateCard/TemplateCard.tsx b/plugins/scaffolder/src/components/TemplateCard/TemplateCard.tsx index 04ad8b0959..fde7080f4c 100644 --- a/plugins/scaffolder/src/components/TemplateCard/TemplateCard.tsx +++ b/plugins/scaffolder/src/components/TemplateCard/TemplateCard.tsx @@ -25,7 +25,7 @@ const useStyles = makeStyles(theme => ({ padding: theme.spacing(2, 2, 6), backgroundImage: (props: { backgroundImage: string }) => props.backgroundImage, - backgroundPosition: '0 center', + backgroundPosition: 0, }, content: { padding: theme.spacing(2),