Skip to content

Commit ff92409

Browse files
committed
Cap the discount selector width so long labels do not break the card layout
With MAIN_SHOW_FACNUMBER_IN_DISCOUNT_LIST the option labels get longer (source invoice ref and date); a plain select sizes itself to its longest option and could push the left column of the invoice card into the right one. Cap it at maxwidth500 like other card selectors; without the option the labels already fit and nothing changes.
1 parent 608b0e5 commit ff92409

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

htdocs/core/class/html.form.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2571,7 +2571,7 @@ public function select_remises($selected, $htmlname, $filter, $socid, $maxvalue
25712571
dol_syslog(get_class($this) . "::select_remises", LOG_DEBUG);
25722572
$resql = $this->db->query($sql);
25732573
if ($resql) {
2574-
print '<select id="select_' . $htmlname . '" class="flat maxwidth200onsmartphone" name="' . $htmlname . '">';
2574+
print '<select id="select_' . $htmlname . '" class="flat maxwidth500 maxwidth200onsmartphone" name="' . $htmlname . '">';
25752575
$num = $this->db->num_rows($resql);
25762576

25772577
$qualifiedlines = $num;

0 commit comments

Comments
 (0)