#12633 fix visuals errors

This commit is contained in:
Jonathan 2024-02-07 09:21:42 +01:00
parent 4912a4051f
commit 499ea9b805
3 changed files with 34 additions and 24 deletions

View File

@ -253,30 +253,35 @@ function createDroppableZones(
) )
); );
// Create remove button.
if ( if (
graphDiv $("#hidden-section").val() ===
.children() "operation/reporting/graph_analytics"
.children()
.hasClass("parent_graph") === true
) { ) {
graphDiv // Create remove button.
.children() if (
.children() graphDiv
.children(":first-child") .children()
.prepend( .children()
$( .hasClass("parent_graph") === true
'<img src="images/delete.svg" class="remove-graph-analytics" onclick="removeGraph(this);">' ) {
) graphDiv
); .children()
} else { .children()
graphDiv .children(":first-child")
.children() .prepend(
.append( $(
$( '<img src="images/delete.svg" class="remove-graph-analytics" onclick="removeGraph(this);">'
'<img src="images/delete.svg" class="remove-graph-analytics" onclick="removeGraph(this);">' )
) );
); } else {
graphDiv
.children()
.append(
$(
'<img src="images/delete.svg" class="remove-graph-analytics" onclick="removeGraph(this);">'
)
);
}
} }
} }
} }
@ -753,7 +758,7 @@ $("#button-share-modal").click(function(e) {
window.open( window.open(
configHomeurl + configHomeurl +
"/operation/reporting/graph_analytics_public.php?" + "operation/reporting/graph_analytics_public.php?" +
queryParams queryParams
); );
}); });

View File

@ -13504,3 +13504,7 @@ tr.shown td.details-control {
mask: url(../../images/minimizar.svg) no-repeat right / contain; mask: url(../../images/minimizar.svg) no-repeat right / contain;
-webkit-mask: url(../../images/minimizar.svg) no-repeat right / contain; -webkit-mask: url(../../images/minimizar.svg) no-repeat right / contain;
} }
#modules-toggle > .modules > .white-box-content div {
z-index: 1 !important;
}

View File

@ -811,6 +811,7 @@ ui_print_standard_header(
$tab_new, $tab_new,
$tab_pause_realtime, $tab_pause_realtime,
$tab_start_realtime, $tab_start_realtime,
html_print_input_hidden('section', get_parameter('sec2'), true),
], ],
[ [
[ [
@ -885,7 +886,7 @@ $left_content .= '
'modules-toggle', 'modules-toggle',
true, true,
true, true,
'', 'modules',
'white-box-content', 'white-box-content',
'box-flat white_table_graph', 'box-flat white_table_graph',
'images/arrow@svg.svg', 'images/arrow@svg.svg',