From bcaf95f50637ff20922a3ea0bcb2603faafa79da Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Thu, 1 Jun 2023 14:34:29 +0200 Subject: [PATCH] Updated signup form with minimal style to use automatic height and minimum height refs https://github.com/TryGhost/Team/issues/3295 refs https://ghost.slack.com/archives/C04TMVA1D7A/p1685620939701309?thread_ts=1685614059.121599&cid=C04TMVA1D7A - The error message of the minimal style form is not visible - Use minimum height instead of fixed height - Automatically update height - Fixed issues with iframe inline style causing spacing and layout jumps --- .../components/settings/signup-form-embed.js | 2 +- ghost/signup-form/index.html | 4 +-- ghost/signup-form/src/components/Frame.tsx | 34 +++++++++++++++++++ 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/ghost/admin/app/components/settings/signup-form-embed.js b/ghost/admin/app/components/settings/signup-form-embed.js index 2627953268..2cc5bab90a 100644 --- a/ghost/admin/app/components/settings/signup-form-embed.js +++ b/ghost/admin/app/components/settings/signup-form-embed.js @@ -49,7 +49,7 @@ export default class SignupFormEmbed extends Component { options[`label-${i + 1}`] = label.name; } - let style = 'height: 58px'; + let style = 'min-height: 58px'; if (this.style === 'all-in-one') { options.logo = this.settings.icon; diff --git a/ghost/signup-form/index.html b/ghost/signup-form/index.html index 43215eefe8..a0d86f0db7 100644 --- a/ghost/signup-form/index.html +++ b/ghost/signup-form/index.html @@ -53,7 +53,7 @@

Minimal

-
+