fix: don't break link list in middle of link in table multiselect

This commit is contained in:
David Arnold 2023-06-25 19:46:08 -05:00
parent 0e84fdaa6c
commit 553e8622b5
No known key found for this signature in database
GPG key ID: 0318D822BAC965CC

View file

@ -352,7 +352,11 @@ frappe.form.formatters = {
const link_field = meta.fields.find((df) => df.fieldtype === "Link");
const formatted_values = rows.map((row) => {
const value = row[link_field.fieldname];
return frappe.format(value, link_field, options, row);
return (
`<span style="white-space: nowrap;">` +
frappe.format(value, link_field, options, row) +
`</span>`
);
});
return formatted_values.join(", ");
},