From 12f7fd01535bef13e4c029b9b3f8cdbe81206e33 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Fri, 9 Jun 2023 10:47:51 +0200 Subject: [PATCH] Updated minimal signup form to be centered by default no issue Added `margin: 0 auto;` css by default. --- .../admin/app/components/modals/settings/signup-form-embed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/admin/app/components/modals/settings/signup-form-embed.js b/ghost/admin/app/components/modals/settings/signup-form-embed.js index cc953f0405..0a14eab2e1 100644 --- a/ghost/admin/app/components/modals/settings/signup-form-embed.js +++ b/ghost/admin/app/components/modals/settings/signup-form-embed.js @@ -96,7 +96,7 @@ export default class SignupFormEmbedModal extends Component { options[`label-${i + 1}`] = label.name; } - let style = 'min-height: 58px; max-width: 440px;'; + let style = 'min-height: 58px; max-width: 440px; margin: 0 auto;'; if (this.style === 'all-in-one') { // We serve twice the size of the icon to support high resolution screens @@ -113,7 +113,7 @@ export default class SignupFormEmbedModal extends Component { if (preview) { if (this.style === 'minimal') { - style = 'max-width: 440px;width: 100%;position: absolute; left: 50%; top:50%; transform: translate(-50%, -50%);'; + style = 'min-height: 58px; max-width: 440px;width: 100%;position: absolute; left: 50%; top:50%; transform: translate(-50%, -50%);'; } else { style = 'height: 100vh'; }