Merge branch 'ent-7697-varios-bugs-visuales-en-modal-de-configuracion-de-widget-metaconsola' into 'develop'

Fix widgets style bugs

See merge request artica/pandorafms!4272
This commit is contained in:
Daniel Rodriguez 2021-09-22 08:58:51 +00:00
commit f78d2e8a4b
7 changed files with 13 additions and 3 deletions

View File

@ -1935,7 +1935,7 @@ function html_print_extended_select_for_time(
ob_start();
// Use the no_meta parameter because this image is only in the base console.
echo '<div id="'.$uniq_name.'_default" class="wauto inline_line">';
echo '<div id="'.$uniq_name.'_default" class="wauto inline_flex">';
html_print_select(
$fields,
$uniq_name.'_select',
@ -4814,7 +4814,11 @@ function html_print_input($data, $wrapper='div', $input_only=false)
((isset($data['size']) === true) ? $data['size'] : false),
((isset($data['return']) === true) ? $data['return'] : false),
((isset($data['style']) === true) ? $data['selected'] : false),
((isset($data['unique']) === true) ? $data['unique'] : false)
((isset($data['unique']) === true) ? $data['unique'] : false),
((isset($data['class']) === true) ? $data['class'] : ''),
((isset($data['readonly']) === true) ? $data['readonly'] : false),
((isset($data['custom_fields']) === true) ? $data['custom_fields'] : false),
((isset($data['style_icon']) === true) ? $data['style_icon'] : '')
);
break;

View File

@ -5738,7 +5738,7 @@ function ui_print_agent_autocomplete_input($parameters)
}
$attrs = [];
$attrs['style'] = 'background: url('.$icon_image.') no-repeat right; '.$text_color.'';
$attrs['style'] = 'padding-right: 20px; background: url('.$icon_image.') no-repeat right; '.$text_color.'';
if (!$disabled_javascript_on_blur_function) {
$attrs['onblur'] = $javascript_on_blur_function_name.'()';

View File

@ -354,6 +354,7 @@ class CustomGraphWidget extends Widget
'value' => $values['period'],
'nothing' => __('None'),
'nothing_value' => 0,
'style_icon' => 'flex-grow: 0',
],
];

View File

@ -325,6 +325,8 @@ class GraphModuleHistogramWidget extends Widget
'value' => $values['period'],
'nothing' => __('None'),
'nothing_value' => 0,
'style_icon' => 'flex-grow: 0',
],
];

View File

@ -310,6 +310,7 @@ class SingleGraphWidget extends Widget
'value' => $values['period'],
'nothing' => __('None'),
'nothing_value' => 0,
'style_icon' => 'flex-grow: 0',
],
];

View File

@ -335,6 +335,7 @@ class SLAPercentWidget extends Widget
'value' => $values['period'],
'nothing' => __('None'),
'nothing_value' => 0,
'style_icon' => 'flex-grow: 0',
],
];

View File

@ -240,6 +240,7 @@ class TopNWidget extends Widget
'value' => $values['period'],
'nothing' => __('None'),
'nothing_value' => 0,
'style_icon' => 'flex-grow: 0',
],
];