#12998 fix style message dashboard

This commit is contained in:
Jonathan 2024-04-24 13:36:12 +02:00
parent cd3634b857
commit 113c92dde0
4 changed files with 14 additions and 4 deletions

View File

@ -301,8 +301,7 @@ function ui_print_message($message, $class='', $attributes='', $return=false, $t
if (empty($message['no_close']) === false) {
// Workaround.
$no_close_bool = false;
// $no_close_bool = (bool) $message['no_close'];
$no_close_bool = (bool) $message['no_close'];
}
if (empty($message['force_style']) === false) {

View File

@ -1543,7 +1543,7 @@ var TreeController = {
} else if (controller.tree.length == 0) {
controller.recipient.empty();
controller.recipient.html(
"<div>" + controller.emptyMessage + "</div>"
"<div class='recipent'>" + controller.emptyMessage + "</div>"
);
return;
}

View File

@ -684,7 +684,7 @@ class TreeViewWidget extends Widget
'dateFormat' => DATE_FORMAT_JS,
'userLanguage' => get_user_language(),
'translate' => [
'emptyMessage' => __('No data found'),
'emptyMessage' => ui_print_info_message(['no_close' => true, 'message' => __('No data found.')], '', true),
'foundMessage' => $foundMessage,
'total' => [
'agents' => __('Total agents'),

View File

@ -954,6 +954,7 @@ input.resize_button {
right: 6%;
}
.recipent > div > table,
.new-widget-message > div > table,
.container-center > div > table {
display: flex;
@ -961,6 +962,7 @@ input.resize_button {
align-items: center;
}
.recipent > div > table tr td > div,
.new-widget-message > div > table tr td > div,
.container-center > div > table tr td > div {
position: absolute;
@ -1021,3 +1023,12 @@ ul.select2-selection__rendered > li.select2-selection__choice {
#period_manual > input[type="text"] {
box-sizing: border-box !important;
}
.recipent {
height: 100%;
width: 100%;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}