#10733 align text widget hotizontally

This commit is contained in:
Daniel Cebrian 2023-04-20 11:15:34 +02:00
parent f2be417a5e
commit 48d7eb2514
1 changed files with 3 additions and 1 deletions

View File

@ -643,17 +643,19 @@ class AvgSumMaxMinModule extends Widget
$output .= '<div class="container-center" id="container-'.$uuid.'">'; $output .= '<div class="container-center" id="container-'.$uuid.'">';
$orientation = ''; $orientation = '';
$extraClass = '';
if ((int) $this->values['horizontal'] === 1) { if ((int) $this->values['horizontal'] === 1) {
$orientation = 'flex aligni_center'; $orientation = 'flex aligni_center';
} else { } else {
$orientation = 'grid'; $orientation = 'grid';
$extraClass = 'mrgn_btn_20px';
} }
// General div. // General div.
$output .= '<div class="'.$orientation.'" id="general-'.$uuid.'">'; $output .= '<div class="'.$orientation.'" id="general-'.$uuid.'">';
// Div value. // Div value.
$output .= '<div class="pdd_l_15px pdd_r_15px mrgn_btn_20px" style="line-height: '.$sizeValue.'px; font-size:'.$sizeValue.'px;'.$text_color.'">'; $output .= '<div class="pdd_l_15px pdd_r_15px '.$extraClass.'" style="line-height: '.$sizeValue.'px; font-size:'.$sizeValue.'px;'.$text_color.'">';
if (is_numeric($data) === true) { if (is_numeric($data) === true) {
$dataDatos = remove_right_zeros( $dataDatos = remove_right_zeros(