Browse Source

Fix bug cutting the label for personal picture in profile form - refs BT#7097

Yannick Warnier 11 years ago
parent
commit
1fd85a9fae
2 changed files with 4 additions and 1 deletions
  1. 1 1
      main/auth/profile.php
  2. 3 0
      main/css/base.css

+ 1 - 1
main/auth/profile.php

@@ -207,7 +207,7 @@ $form->addRule('phone', get_lang('EmailWrong'), 'email');*/
 
 //    PICTURE
 if (is_profile_editable() && api_get_setting('profile', 'picture') == 'true') {
-    $form->addElement('file', 'picture', ($user_data['picture_uri'] != '' ? get_lang('UpdateImage') : get_lang('AddImage')));
+    $form->addElement('file', 'picture', ($user_data['picture_uri'] != '' ? get_lang('UpdateImage') : get_lang('AddImage')), array('class' => 'picture-form'));
     $form->add_progress_bar();
     if (!empty($user_data['picture_uri'])) {
         $form->addElement('checkbox', 'remove_picture', null, get_lang('DelImage'));

+ 3 - 0
main/css/base.css

@@ -2279,6 +2279,9 @@ div.admin_section h4 {
 .profile_grid_element_0 { width:100px; float:left; text-align:center; margin-bottom:5px;}
 .profile_grid_element_1 { width:170px; float:left; text-align:left; margin-bottom:1px; }
 
+#profile .picture-form {
+    width: 350px;
+}
 
 /* pagination grid sortable */
 .sub_header {width:100%}