fixed size modal pandora_enterprise#8827

This commit is contained in:
Daniel Barbero Martin 2022-06-28 09:14:11 +02:00
parent 6edc6e1014
commit 7a93861a2b
8 changed files with 25 additions and 9 deletions

View File

@ -381,7 +381,7 @@ class AlertsFiredWidget extends Widget
{ {
$size = [ $size = [
'width' => 400, 'width' => 400,
'height' => 260, 'height' => (is_metaconsole() === true) ? 330 : 260,
]; ];
return $size; return $size;

View File

@ -298,7 +298,7 @@ class WelcomeWidget extends Widget
{ {
$size = [ $size = [
'width' => 500, 'width' => 500,
'height' => 210, 'height' => 220,
]; ];
return $size; return $size;

View File

@ -544,7 +544,7 @@ class MapsMadeByUser extends Widget
{ {
$size = [ $size = [
'width' => 400, 'width' => 400,
'height' => 270, 'height' => (is_metaconsole() === true) ? 330 : 270,
]; ];
return $size; return $size;

View File

@ -409,7 +409,7 @@ class MapsStatusWidget extends Widget
{ {
$size = [ $size = [
'width' => 400, 'width' => 400,
'height' => 410, 'height' => 425,
]; ];
return $size; return $size;

View File

@ -319,7 +319,7 @@ class MonitorHealthWidget extends Widget
20 20
); );
$output = '<div class="container-center mw200px min-height-320px">'; $output = '<div>';
$output .= \html_print_table($table, true); $output .= \html_print_table($table, true);
$output .= '</div>'; $output .= '</div>';
@ -358,7 +358,7 @@ class MonitorHealthWidget extends Widget
{ {
$size = [ $size = [
'width' => 400, 'width' => 400,
'height' => 210, 'height' => 220,
]; ];
return $size; return $size;

View File

@ -296,8 +296,8 @@ class PostWidget extends Widget
public function getSizeModalConfiguration(): array public function getSizeModalConfiguration(): array
{ {
$size = [ $size = [
'width' => 480, 'width' => 500,
'height' => 480, 'height' => 500,
]; ];
return $size; return $size;

View File

@ -508,7 +508,7 @@ class ReportsWidget extends Widget
{ {
$size = [ $size = [
'width' => 400, 'width' => 400,
'height' => 260, 'height' => (is_metaconsole() === true) ? 330 : 260,
]; ];
return $size; return $size;

View File

@ -540,4 +540,20 @@ class TopNWidget extends Widget
} }
/**
* Get size Modal Configuration.
*
* @return array
*/
public function getSizeModalConfiguration(): array
{
$size = [
'width' => 400,
'height' => 530,
];
return $size;
}
} }