diff --git a/htdocs/core/customreports.php b/htdocs/core/customreports.php
index 7a1f68e5c6c..17ed8fcefe6 100644
--- a/htdocs/core/customreports.php
+++ b/htdocs/core/customreports.php
@@ -420,7 +420,7 @@ $viewmode = '';
$viewmode .= '
';
$arrayofgraphs = array('bars' => 'Bars', 'lines' => 'Lines'); // also 'pies'
$viewmode .= '
'.$langs->trans("Graph").'
';
-$viewmode .= $form->selectarray('search_graph', $arrayofgraphs, $search_graph, 0, 0, 0, 'minwidth100', 1);
+$viewmode .= $form->selectarray('search_graph', $arrayofgraphs, $search_graph, 0, 0, 0, '', 1, 0, 0, '', 'graphtype width100');
$viewmode .= '
';
$num = 0;
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index fc718c21509..1750cf00c7f 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -6566,11 +6566,11 @@ select.multiselectononeline {
@media only screen and (min-width: 767px)
{
/* CSS to have the dropdown boxes larger that the input search area */
- .select2-container.select2-container--open .select2-dropdown.ui-dialog {
+ .select2-container.select2-container--open:not(.graphtype) .select2-dropdown.ui-dialog {
min-width: 220px !important;
}
- .select2-container.select2-container--open .select2-dropdown--below:not(.onrightofpage),
- .select2-container.select2-container--open .select2-dropdown--above:not(.onrightofpage) {
+ .select2-container.select2-container--open:not(.graphtype) .select2-dropdown--below:not(.onrightofpage),
+ .select2-container.select2-container--open:not(.graphtype) .select2-dropdown--above:not(.onrightofpage) {
min-width: 220px !important;
}
.onrightofpage span.select2-dropdown.ui-dialog.select2-dropdown--below,
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index 509986d1e61..24078c3ca8f 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -6462,12 +6462,11 @@ select.multiselectononeline {
@media only screen and (min-width: 767px)
{
/* CSS to have the dropdown boxes larger that the input search area */
- .select2-container.select2-container--open .select2-dropdown.ui-dialog {
+ .select2-container.select2-container--open:not(.graphtype) .select2-dropdown.ui-dialog {
min-width: 220px !important;
}
-
- .select2-container.select2-container--open .select2-dropdown--below:not(.onrightofpage),
- .select2-container.select2-container--open .select2-dropdown--above:not(.onrightofpage) {
+ .select2-container.select2-container--open:not(.graphtype) .select2-dropdown--below:not(.onrightofpage),
+ .select2-container.select2-container--open:not(.graphtype) .select2-dropdown--above:not(.onrightofpage) {
min-width: 220px !important;
}
.onrightofpage span.select2-dropdown.ui-dialog.select2-dropdown--below,