Updated minimal signup form to be centered by default

no issue

Added `margin: 0 auto;` css by default.
This commit is contained in:
Simon Backx 2023-06-09 10:47:51 +02:00
parent 66ca072055
commit 12f7fd0153

View File

@ -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';
}