From 5845ce97b03b91cbe3a14bb5335f0d21c725aea3 Mon Sep 17 00:00:00 2001 From: l2ig Date: Tue, 9 Aug 2022 13:04:55 +0200 Subject: [PATCH] feat: add name length check at registration Signed-off-by: l2ig --- src/base/registrations/Index.svelte | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/base/registrations/Index.svelte b/src/base/registrations/Index.svelte index 758ecca2b..3f6f19e60 100644 --- a/src/base/registrations/Index.svelte +++ b/src/base/registrations/Index.svelte @@ -32,6 +32,11 @@ .name { margin: 1rem; } + .input-info { + position: absolute; + font-style: italic; + margin-top: 0.1rem; + } @@ -51,9 +56,14 @@ placeholder="" root={config.registrar.domain} /> + {#if label && label.length < 2} + Please enter a minimum of 2 characters. + {:else if label && label.length > 128} + Please enter a maximum of 128 characters. + {/if} -