#12456 fixed size of cards containing Agents hive information

This commit is contained in:
Jorge Rincon 2023-11-15 11:23:10 +01:00
parent c7a746ea41
commit c34515549c
2 changed files with 20 additions and 10 deletions

View File

@ -435,11 +435,17 @@ class AgentHive extends Widget
$output .= html_print_div( $output .= html_print_div(
[ [
'content' => (empty($data['os_version']) === true) 'content' => (empty($data['os_version']) === true)
? get_os_name((int) $data['id_os']) ? ui_print_truncate_text(get_os_name((int) $data['id_os']))
: $data['os_version'], : ui_print_truncate_text($data['os_version']),
'style' => 'font-size: 6pt; display: 'style' => 'font-size: 6pt;
flex;justify-content: start;align-items: start; display: flex;
color: #9FA5B1; font-weight: 600;margin-bottom: 5px', justify-content: start;
align-items: start;
color: #9FA5B1;
font-weight: 600;
margin: 5px;
float: right;
word-break: break-all;',
], ],
true true
); );
@ -455,8 +461,10 @@ class AgentHive extends Widget
true, true,
'…', '…',
), ),
'style' => 'text-align: left;min-height: 42px; 'style' => 'text-align: left;
font-size: 8pt;max-height: 42px; margin-bottom: 10px', min-height: 42px; font-size: 8pt;
max-height: 42px;
margin: 2px 0px 2px 0px',
], ],
true true
); );
@ -466,7 +474,9 @@ class AgentHive extends Widget
[ [
'content' => $data['direccion'], 'content' => $data['direccion'],
'style' => 'font-size: 10pt;color: #14524f; 'style' => 'font-size: 10pt;color: #14524f;
font-weight: 600; text-align: left', font-weight: 600;
text-align: left;
margin-top: 5px',
], ],
true true
); );

View File

@ -663,9 +663,9 @@ form.modal-dashboard
justify-content: center; justify-content: center;
align-items: start; align-items: start;
min-width: 150px; min-width: 150px;
max-width: 150px; max-width: 200px;
min-height: 150px; min-height: 150px;
max-height: 150px; max-height: 200px;
margin: 8px; margin: 8px;
padding: 5px; padding: 5px;
border: 1px solid #eceef2; border: 1px solid #eceef2;