From e8a6b49e811ca1653fa378d1ee15db7b63be5436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Gonz=C3=A1lez?= Date: Wed, 21 Jul 2021 15:17:23 +0200 Subject: [PATCH 1/2] Fixed issues --- pandora_console/mobile/include/style/main.css | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/pandora_console/mobile/include/style/main.css b/pandora_console/mobile/include/style/main.css index 17188f60bc..f9a1ac86f4 100755 --- a/pandora_console/mobile/include/style/main.css +++ b/pandora_console/mobile/include/style/main.css @@ -1,3 +1,37 @@ +/** + * + * Default mobile theme + * + * @category Stylesheet + * @package Pandora FMS + * @subpackage Community + * @version 1.0.0 + * @license See below + * + * ______ ___ _______ _______ ________ + * | __ \.-----.--.--.--| |.-----.----.-----. | ___| | | __| + * | __/| _ | | _ || _ | _| _ | | ___| |__ | + * |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______| + * + * ============================================================================ + * Copyright (c) 2005-2021 Artica Soluciones Tecnologicas + * Please see http://pandorafms.org for full contribution list + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation for version 2. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * ============================================================================ + */ + +@font-face { + font-family: "lato"; + src: url("../../../fonts/lato.woff2") format("woff"); + font-weight: 400; +} + * { text-decoration: none !important; font-size: 12px; @@ -11,6 +45,8 @@ body { margin: 0; text-align: left; vertical-align: top; + font-weight: 400; + font-family: "Lato"; } .small { From 1aa788bd83431de95371bf52dfa5d57c7962cd84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Gonz=C3=A1lez?= Date: Mon, 16 Aug 2021 16:32:20 +0200 Subject: [PATCH 2/2] Fix issue with colours in mobile view --- pandora_console/include/graphs/functions_flot.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/graphs/functions_flot.php b/pandora_console/include/graphs/functions_flot.php index 2b1cb2b589..57bb2fcfd8 100644 --- a/pandora_console/include/graphs/functions_flot.php +++ b/pandora_console/include/graphs/functions_flot.php @@ -118,6 +118,7 @@ function flot_area_graph( $array_events_alerts ) { global $config; + global $is_mobile; // Get a unique identifier to graph. $graph_id = uniqid('graph_'); @@ -145,7 +146,7 @@ function flot_area_graph( break; } - if ($config['style'] === 'pandora_black' && ($params['pdf'] === false || $params['pdf'] === null ) + if ($config['style'] === 'pandora_black' && ($params['pdf'] === false || $params['pdf'] === null) && (isset($is_mobile) === false || $is_mobile === false) ) { $background_style = '#222'; $params['grid_color'] = '#fff';