]> cat aescling's git repositories - mastodon.git/commitdiff
Swap avatar and header input fields in profile page (#9271)
authorThibG <thib@sitedethib.com>
Thu, 29 Nov 2018 01:56:09 +0000 (02:56 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 29 Nov 2018 01:56:09 +0000 (02:56 +0100)
Fixes #9211

app/views/settings/profiles/show.html.haml

index f5c50144bd9066f0708bd9d6bbd38e1f467749fb..4530ffae277c52d258a1cfe749c508366daf935b 100644 (file)
       = render 'application/card', account: @account
 
     .fields-row__column.fields-group.fields-row__column-6
+      = f.input :header, wrapper: :with_label, input_html: { accept: AccountHeader::IMAGE_MIME_TYPES.join(',') }, hint: t('simple_form.hints.defaults.header', dimensions: '1500x500', size: number_to_human_size(AccountHeader::LIMIT))
+
       = f.input :avatar, wrapper: :with_label, input_html: { accept: AccountAvatar::IMAGE_MIME_TYPES.join(',') }, hint: t('simple_form.hints.defaults.avatar', dimensions: '400x400', size: number_to_human_size(AccountAvatar::LIMIT))
 
-      = f.input :header, wrapper: :with_label, input_html: { accept: AccountHeader::IMAGE_MIME_TYPES.join(',') }, hint: t('simple_form.hints.defaults.header', dimensions: '1500x500', size: number_to_human_size(AccountHeader::LIMIT))
 
   %hr.spacer/