#12456 Fixed os text style

This commit is contained in:
Daniel Maya 2023-12-15 12:59:56 +01:00
parent c34515549c
commit e6981fb436
2 changed files with 25 additions and 13 deletions

View File

@ -431,21 +431,33 @@ class AgentHive extends Widget
$output .= '</div>';
$style = 'font-size: 6pt; display: flex; justify-content: start;
align-items: start; color: #9FA5B1; font-weight: 600;';
$style_div = $style.' margin-bottom: 5px;';
// OS description.
$output .= html_print_div(
[
'content' => (empty($data['os_version']) === true)
? ui_print_truncate_text(get_os_name((int) $data['id_os']))
: ui_print_truncate_text($data['os_version']),
'style' => 'font-size: 6pt;
display: flex;
justify-content: start;
align-items: start;
color: #9FA5B1;
font-weight: 600;
margin: 5px;
float: right;
word-break: break-all;',
? ui_print_truncate_text(
get_os_name((int) $data['id_os']),
35,
false,
true,
true,
'&hellip;',
$style
)
: ui_print_truncate_text(
$data['os_version'],
35,
false,
true,
true,
'&hellip;',
$style
),
'style' => $style_div,
],
true
);

View File

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