From 15c305317a841ef8eecce70e0bcdff4579a4f022 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Tue, 22 Mar 2022 11:11:47 -0600 Subject: [PATCH] Update header and footer margins. --- client/src/utils/RenderTemplate.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/client/src/utils/RenderTemplate.js b/client/src/utils/RenderTemplate.js index d19cbb81b..9a2201c2f 100644 --- a/client/src/utils/RenderTemplate.js +++ b/client/src/utils/RenderTemplate.js @@ -37,11 +37,13 @@ export default async function RenderTemplate( chrome: { marginTop: (bodyshop.logo_img_path && - bodyshop.logo_img_path.headerMargin) || + bodyshop.logo_img_path.headerMargin && + bodyshop.logo_img_path.headerMargin > 36) || "36px", marginBottom: (bodyshop.logo_img_path && - bodyshop.logo_img_path.footerMargin) || + bodyshop.logo_img_path.footerMargin && + bodyshop.logo_img_path.footerMargin > 36) || "36px", }, }), @@ -142,11 +144,13 @@ export async function RenderTemplates( chrome: { marginTop: (bodyshop.logo_img_path && - bodyshop.logo_img_path.headerMargin) || + bodyshop.logo_img_path.headerMargin && + bodyshop.logo_img_path.headerMargin > 36) || "36px", marginBottom: (bodyshop.logo_img_path && - bodyshop.logo_img_path.footerMargin) || + bodyshop.logo_img_path.footerMargin && + bodyshop.logo_img_path.footerMargin > 36) || "36px", }, }),