Tweak profile picture styles

This commit is contained in:
Petko Bordjukov 2015-08-15 09:00:06 +03:00
parent 358a7da0e8
commit 23ce93a853
2 changed files with 4 additions and 3 deletions

View File

@ -43,7 +43,7 @@
margin-left: 12em; margin-left: 12em;
} }
.input .hint, .input .error { .input .hint, .help-block, .input .error {
display: block; display: block;
clear: both; clear: both;
font-size: 0.75em; font-size: 0.75em;

View File

@ -2,8 +2,9 @@
= f.error_notification = f.error_notification
.form-inputs .form-inputs
= f.input :picture, as: :file, required: true, wrapper: :default .input
= image_tag(@profile.picture.medium.url) if @profile.picture? = 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.hidden_field :picture_cache, class: 'image_preview', wrapper: false
= f.input :first_name, autofocus: true = f.input :first_name, autofocus: true