From 23ce93a85325ef66161049d490f9009bad417248 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sat, 15 Aug 2015 09:00:06 +0300 Subject: [PATCH] Tweak profile picture styles --- lib/initfest/assets/stylesheets/initfest/_forms.scss | 2 +- lib/initfest/views/public/personal_profiles/_form.slim | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/initfest/assets/stylesheets/initfest/_forms.scss b/lib/initfest/assets/stylesheets/initfest/_forms.scss index f8e21f3..adfb6e0 100644 --- a/lib/initfest/assets/stylesheets/initfest/_forms.scss +++ b/lib/initfest/assets/stylesheets/initfest/_forms.scss @@ -43,7 +43,7 @@ margin-left: 12em; } -.input .hint, .input .error { +.input .hint, .help-block, .input .error { display: block; clear: both; font-size: 0.75em; diff --git a/lib/initfest/views/public/personal_profiles/_form.slim b/lib/initfest/views/public/personal_profiles/_form.slim index ac76542..52b1992 100644 --- a/lib/initfest/views/public/personal_profiles/_form.slim +++ b/lib/initfest/views/public/personal_profiles/_form.slim @@ -2,8 +2,9 @@ = f.error_notification .form-inputs - = f.input :picture, as: :file, required: true, wrapper: :default - = image_tag(@profile.picture.medium.url) if @profile.picture? + .input + = image_tag(@profile.picture.medium.url) if @profile.picture? + = f.input :picture, as: :file, required: true, wrapper: false = f.hidden_field :picture_cache, class: 'image_preview', wrapper: false = f.input :first_name, autofocus: true