From 4b3cab6e9b13986ecb6f042492075b6a7a942a09 Mon Sep 17 00:00:00 2001 From: Torsten Date: Mon, 23 Jan 2023 12:50:22 +0200 Subject: [PATCH] better member profile edit on mobile --- app/views/members/edit.html.haml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/views/members/edit.html.haml b/app/views/members/edit.html.haml index 46e22cb..9f33dd2 100644 --- a/app/views/members/edit.html.haml +++ b/app/views/members/edit.html.haml @@ -1,15 +1,14 @@ %script{:src => "https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"} %script{:src => "https://cdn.jsdelivr.net/npm/marked/marked.min.js"} -.flex.justify-center.m-20 - .flex.flex-col +.flex.justify-center.m-5.m-5.md:m-12.lg:m-20 + .flex.flex-col.text-center %h1.text-4xl Edit your profile -= simple_form_for @member do |f| - - .flex.justify-center - .column{class: "w-11/12 md:w-10/12"} - .grid.grid-cols-1.md:grid-cols-2.mx-20.gap-10 +.flex.justify-center.m-5.m-5.md:m-12.lg:m-20 + .flex.flex-col.text-center{class: "w-full md:w-10/12"} + = simple_form_for @member do |f| + .grid.grid-cols-1.md:grid-cols-2.gap-10 = render "merged/form/editor" , object: @member , field: :bio, form: f .info.mr-8 .text-red-700= f.error_notification