10873-Mini mobile console review

This commit is contained in:
Pablo Aragon 2023-04-10 08:56:44 +02:00
parent 538f8266dc
commit 45ca03245c
4 changed files with 45 additions and 3 deletions

View File

@ -6944,7 +6944,7 @@ function ui_get_favicon()
global $config;
if (empty($config['custom_favicon'])) {
return (!is_metaconsole()) ? 'images/pandora.ico' : 'enterprise/meta/images/favicon_meta.ico';
return (!is_metaconsole()) ? 'images/pandora.ico' : '/images/favicon_meta.ico';
}
return 'images/custom_favicon/'.$config['custom_favicon'];

View File

@ -25,6 +25,11 @@
* GNU General Public License for more details.
* ============================================================================
*/
:root {
--primary-color: #14524f;
--secondary-color: #ffffff;
--input-border: #c0ccdc;
}
@font-face {
font-family: "lato";
@ -1505,3 +1510,39 @@ div.nodata_container {
.visual-console-container-dashboard a:visited {
color: inherit !important;
}
/* SVG icons mask */
.module_background_state {
mask: url(../../../images/modules@svg.svg) no-repeat center / contain;
-webkit-mask: url(../../../images/modules@svg.svg) no-repeat center / contain;
margin: 0 auto;
}
.alert_background_state {
mask: url(../../../images/alert@svg.svg) no-repeat center / contain;
-webkit-mask: url(../../../images/alert@svg.svg) no-repeat center / contain;
margin: 0 auto;
}
div.main_menu_icon,
img.main_menu_icon[src$=".svg"] {
width: 18px;
height: 18px;
}
img.os-big-icon[src$=".svg"] {
width: 100px;
height: 100px;
}
div.noresizevc.graph.adapted_sparse
div.flot-x-axis.flot-x1-axis.xAxis.x1Axis
> div.flot-tick-label.tickLabel:nth-child(odd) {
visibility: hidden !important;
}
div.noresizevc.graph.adapted_sparse
div.flot-x-axis.flot-x1-axis.xAxis.x1Axis
> div.flot-tick-label.tickLabel:first-child {
visibility: visible !important;
}

View File

@ -213,8 +213,8 @@ class Agent
false,
false,
false,
false,
true
['class' => 'invert_filter os-big-icon'],
false
).'</div>';
$html .= '<div class="agent_list_ips">';
$html .= $ip.' - '.groups_get_name($this->agent['id_grupo'], true);

View File

@ -206,6 +206,7 @@ class ModuleGraph
$graph = grafico_modulo_sparse($params);
if ($this->draw_events) {
$this->width = 100;
$graph .= '<br>';
$graph .= graphic_module_events(
$this->id,