[FIX] web: fix wrapping of many2one in list view
Before this fix, the many2one text in the list view was not wrapping. After this fix, the text will wrap according to the available space (managed automatically by the browser). closes odoo/odoo#34345 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
This commit is contained in:
@@ -29,6 +29,7 @@ var FIELD_CLASSES = {
|
||||
integer: 'o_list_number',
|
||||
monetary: 'o_list_number',
|
||||
text: 'o_list_text',
|
||||
many2one: 'o_list_many2one',
|
||||
};
|
||||
|
||||
var ListRenderer = BasicRenderer.extend({
|
||||
|
||||
@@ -30,6 +30,10 @@
|
||||
&.o_list_text {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
&.o_list_many2one {
|
||||
white-space: pre-wrap;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
tfoot {
|
||||
@@ -173,7 +177,9 @@
|
||||
.o_list_record_remove_header, .o_handle_cell {
|
||||
width: 32px;
|
||||
}
|
||||
|
||||
&>tbody>tr>td.o_list_many2one {
|
||||
white-space: nowrap;
|
||||
}
|
||||
// checkboxes in editable lists should be clickable and activate the row
|
||||
.o_data_row:not(.o_selected_row) .o_data_cell {
|
||||
.custom-checkbox:not(.o_readonly_modifier) {
|
||||
|
||||
Reference in New Issue
Block a user