From c0f8690d1b763e9d4b51ac04bad976583d98494c Mon Sep 17 00:00:00 2001 From: Pierre Paridans Date: Thu, 28 Feb 2019 09:45:20 +0000 Subject: [PATCH] [FIX] lunch,web: display correctly list's cell with text overflow Installing the 'lunch' module add css rules to the generic list view styling, modifying the styling of all the list views by the simple fact of being installed. The goal of those rules is that in list view a table cell with the o_text_overflow class should still be displayed as a table-cell (and not a block/inline-block). Without the lunch module a list view's cell with the o_text_overflow class is narrower and break the alignment between this column and the headers. This commit moves the necessary rule (display property) to the web module and apply them globally. Remark: module's css rules shouldn't override globally the one from 'web'. Original commit: https://github.com/odoo/odoo/commit/855c6dac25fccaf9312543022001ed0b360d6e13 closes odoo/odoo#31506 --- addons/lunch/static/src/scss/lunch_kanban.scss | 8 -------- addons/web/static/src/scss/list_view.scss | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/addons/lunch/static/src/scss/lunch_kanban.scss b/addons/lunch/static/src/scss/lunch_kanban.scss index 2e589ed912fa4..7c50ae36358e3 100644 --- a/addons/lunch/static/src/scss/lunch_kanban.scss +++ b/addons/lunch/static/src/scss/lunch_kanban.scss @@ -1,11 +1,3 @@ -.o_list_view { - .o_data_row { - .o_text_overflow { - @include o-text-overflow(table-cell); - } - } -} - .o_lunch_kanban { display: flex; flex-direction: column; // display lunch widget above kanban renderer diff --git a/addons/web/static/src/scss/list_view.scss b/addons/web/static/src/scss/list_view.scss index 85b9b9f6f0767..55f5b755df1b2 100644 --- a/addons/web/static/src/scss/list_view.scss +++ b/addons/web/static/src/scss/list_view.scss @@ -137,6 +137,7 @@ white-space: pre-wrap; } + .o_data_cell.o_text_overflow, .o_data_cell.o_invisible_modifier { // Override display: none to keep table cells aligned. Note: cannot use // 'initial' as it will force them to 'inline', not 'table-cell'.