Skip to content
Snippets Groups Projects
Unverified Commit f6d96d35 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Improve avatar block UI on profile page

parent 41d67d14
No related branches found
No related tags found
1 merge request!1Fix Links To Gitlab Cloud
Loading
@@ -42,7 +42,8 @@
Loading
@@ -42,7 +42,8 @@
margin-right: 12px; margin-right: 12px;
} }
   
.remove_avatar { .profile-avatar-form-option {
margin-top: 10px; hr {
margin: 10px 0;
}
} }
Loading
@@ -74,9 +74,10 @@
Loading
@@ -74,9 +74,10 @@
   
%span.file_name.js-avatar-filename File name... %span.file_name.js-avatar-filename File name...
= f.file_field :avatar, class: "js-user-avatar-input hide" = f.file_field :avatar, class: "js-user-avatar-input hide"
%span.help-block The maximum file size allowed is 100KB. .light The maximum file size allowed is 100KB.
- if @user.avatar? - if @user.avatar?
= link_to 'Remove avatar', profile_avatar_path, confirm: "Avatar will be removed. Are you sure?", method: :delete, class: "btn btn-remove remove_avatar" %hr
= link_to 'Remove avatar', profile_avatar_path, confirm: "Avatar will be removed. Are you sure?", method: :delete, class: "btn btn-remove btn-small remove-avatar"
   
.form-actions .form-actions
= f.submit 'Save changes', class: "btn btn-save" = f.submit 'Save changes', class: "btn btn-save"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment