Same width for all picto of menu
This commit is contained in:
parent
c1eba5a885
commit
3dedd81f37
@ -3267,7 +3267,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
||||
'filter', 'file-code', 'file-export', 'file-import', 'file-upload', 'folder', 'folder-open', 'globe', 'globe-americas', 'grip', 'grip_title', 'group',
|
||||
'help', 'holiday',
|
||||
'intervention', 'label', 'language', 'link', 'list', 'listlight', 'loan', 'lot',
|
||||
'map-marker-alt', 'member', 'money-bill-alt', 'mrp', 'note', 'next',
|
||||
'margin', 'map-marker-alt', 'member', 'money-bill-alt', 'mrp', 'note', 'next',
|
||||
'object_accounting', 'object_account', 'object_accountline', 'object_action', 'object_barcode', 'object_bill', 'object_billa', 'object_billd', 'object_bom',
|
||||
'object_category', 'object_conversation', 'object_bookmark', 'object_bug', 'object_clock', 'object_dolly', 'object_dollyrevert', 'object_generic', 'object_folder',
|
||||
'object_list-alt', 'object_calendar', 'object_calendarweek', 'object_calendarmonth', 'object_calendarday', 'object_calendarperuser',
|
||||
@ -3364,7 +3364,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
||||
$fakey = 'fa-'.$pictowithouttext;
|
||||
}
|
||||
if (in_array($pictowithouttext, array('payment', 'loan'))) {
|
||||
$fasize = '0.85em';
|
||||
$fasize = '0.80em';
|
||||
}
|
||||
|
||||
// Define $marginleftonlyshort
|
||||
|
||||
@ -353,15 +353,13 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
|
||||
/**
|
||||
* Enables a module.
|
||||
* Inserts all informations into database
|
||||
* Inserts all informations into database.
|
||||
*
|
||||
* @param array $array_sql SQL requests to be executed when enabling module
|
||||
* @param string $options String with options when disabling module:
|
||||
* - 'noboxes' = Do not insert boxes -
|
||||
* 'newboxdefonly' = For boxes, insert def of
|
||||
* boxes only and not boxes activation
|
||||
*
|
||||
* @return int 1 if OK, 0 if KO
|
||||
* @param array $array_sql SQL requests to be executed when enabling module
|
||||
* @param string $options String with options when disabling module:
|
||||
* - 'noboxes' = Do not insert boxes
|
||||
* - 'newboxdefonly' = For boxes, insert def of boxes only and not boxes activation
|
||||
* @return int 1 if OK, 0 if KO
|
||||
*/
|
||||
protected function _init($array_sql, $options = '')
|
||||
{
|
||||
|
||||
@ -107,7 +107,7 @@ class modMargin extends DolibarrModules
|
||||
'fk_menu'=>'fk_mainmenu=billing', // Put 0 if this is a top menu
|
||||
'type'=>'left', // This is a Top menu entry
|
||||
'titre'=>'Margins',
|
||||
'prefix' => '<span class="fas fa-money-check-alt infobox-bank_account paddingright pictofixedwidth" style="font-size: 0.85em;"></span>',
|
||||
'prefix' => img_picto('', $this->picto, 'class="paddingright pictofixedwidth"'),
|
||||
'mainmenu'=>'billing',
|
||||
'leftmenu'=>'margins',
|
||||
'url'=>'/margin/index.php',
|
||||
|
||||
@ -477,6 +477,7 @@ if (!GETPOST('action', 'aZ09') || preg_match('/upgrade/i', GETPOST('action', 'aZ
|
||||
'MAIN_MODULE_FACTURE'=>'newboxdefonly',
|
||||
'MAIN_MODULE_FOURNISSEUR'=>'newboxdefonly',
|
||||
'MAIN_MODULE_HOLIDAY'=>'newboxdefonly',
|
||||
'MAIN_MODULE_MARGIN'=>'menuonly',
|
||||
'MAIN_MODULE_OPENSURVEY'=>'newboxdefonly',
|
||||
'MAIN_MODULE_PAYBOX'=>'newboxdefonly',
|
||||
'MAIN_MODULE_PRINTING'=>'newboxdefonly',
|
||||
|
||||
@ -1937,7 +1937,8 @@ span.widthpictotitle.pictotitle {
|
||||
}
|
||||
.pictofixedwidth {
|
||||
text-align: left;
|
||||
width: 16px;
|
||||
width: 18px;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.colorthumb {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user