diff --git a/public/index.css b/public/index.css index 9290541..f41d721 100644 --- a/public/index.css +++ b/public/index.css @@ -210,4 +210,13 @@ h1 { margin-right: 8px; border-radius: 15px; object-fit: cover; +} + +@media (max-width: 800px) { + .form { + grid-template-columns: 1fr; + } + .form-button, .form-message, form .header-big { + grid-column: span 1; + } } \ No newline at end of file diff --git a/views/form.ejs b/views/form.ejs index b79ba45..55e1f96 100644 --- a/views/form.ejs +++ b/views/form.ejs @@ -6,9 +6,11 @@ <%= message %> <% for (let kv of inputs) { %> + <% if (kv.type!='hidden' ) { %> <%= kv.key %> + <% } %> <% if (kv.type=='textarea' ) { %> <% } else { %>