From 904b526b30d03390cf6e685e82404b1f52d52210 Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Wed, 22 Mar 2023 11:23:07 +0100 Subject: [PATCH] Change pass login. Graph tree view width --- pandora_console/include/functions_treeview.php | 14 ++++++++++++++ .../include/javascript/jquery.pandora.js | 4 ++-- pandora_console/include/styles/login.css | 4 ++-- pandora_console/include/styles/tree.css | 4 ---- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php index a6d6d0d2c7..f2323fd13c 100755 --- a/pandora_console/include/functions_treeview.php +++ b/pandora_console/include/functions_treeview.php @@ -702,6 +702,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false) $eventsGraph = html_print_div( [ 'style' => 'height: 150px;', + 'class' => 'max-graph-tree-view', 'content' => graph_graphic_agentevents( $id_agente, '500px;', @@ -934,5 +935,18 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false) } + $('.max-graph-tree-view').ready(function() { + widthGraph(); + }); + + $(window).resize(function() { + widthGraph(); + }); + + function widthGraph () { + var parentWidth = $('.max-graph-tree-view').parent().width(); + $('.max-graph-tree-view').children().width(parentWidth + 5); + } + "; } diff --git a/pandora_console/include/javascript/jquery.pandora.js b/pandora_console/include/javascript/jquery.pandora.js index 31e31c9183..5b39a98631 100644 --- a/pandora_console/include/javascript/jquery.pandora.js +++ b/pandora_console/include/javascript/jquery.pandora.js @@ -226,8 +226,8 @@ $(document).ready(function() { resizable: false, draggable: true, modal: true, - height: 450, - width: 620, + height: 410, + width: 390, overlay: { opacity: 0.5, background: "black" diff --git a/pandora_console/include/styles/login.css b/pandora_console/include/styles/login.css index fdba06937a..c08d4a0908 100644 --- a/pandora_console/include/styles/login.css +++ b/pandora_console/include/styles/login.css @@ -455,7 +455,7 @@ div.form_message_alert { width: 90%; clear: both; padding-top: 20px; - padding-left: 40px; + padding-left: 20px; } div.form_message_alert ul li { @@ -765,7 +765,7 @@ button.submitButton:hover { background-position: 0 !important; } -button.submitButton > span { +button.submitButton:not(.mini) > span { font-family: Arial, Helvetica, sans-serif; font-size: 15pt; } diff --git a/pandora_console/include/styles/tree.css b/pandora_console/include/styles/tree.css index 88f342dec3..4c552e5e6d 100644 --- a/pandora_console/include/styles/tree.css +++ b/pandora_console/include/styles/tree.css @@ -407,7 +407,3 @@ div#tree-controller-recipient { .tree-node .node-icon.node-status { border: 0; } - -.max-graph-tree-view { - width: calc(100% - 100px); -}