i'm using cacti in firefox with the browser window not being maximized but approx. 1100px in width.
Problem: long hostnames and long graph template names makes the header table grow so big that
i have to use the horizontal scroll bar to see everything.
Please see attached screenshots and patch file.
Before:
Code: Select all
% grep -Ei '<select.*(host_id|graph_template_id)' /usr/share/cacti/site/graph_view.php
<select name="host_id" onChange="applyGraphPreviewFilterChange(document.form_graph_view)">
<select name="graph_template_id" onChange="applyGraphPreviewFilterChange(document.form_graph_view)">
<select name="host_id" onChange="applyGraphListFilterChange(document.form_graph_list)">
<select name="graph_template_id" onChange="applyGraphListFilterChange(document.form_graph_list)">
Code: Select all
% grep -Ei '<select.*(host_id|graph_template_id)' /usr/share/cacti/site/graph_view.php
<select name="host_id" onChange="applyGraphPreviewFilterChange(document.form_graph_view)" style="width: 100px">
<select name="graph_template_id" onChange="applyGraphPreviewFilterChange(document.form_graph_view)" style="width: 100px">
<select name="host_id" onChange="applyGraphListFilterChange(document.form_graph_list)" style="width: 100px">
<select name="graph_template_id" onChange="applyGraphListFilterChange(document.form_graph_list)" style="width: 100px">
the width of the SELECT boxes an user option so everyone can tweak this for himself easily.
thermoman.