summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2019-08-09 08:07:55 +0000
committerAaron Bohy <aab@odoo.com>2019-08-23 06:28:34 +0000
commitbf3c1d3e0c2cb9f6ed560994d24de026c080aa01 (patch)
treec0f38a904ad368b62276d519d53fbc9aee48811e /addons/web/static/src/scss
parent43ad74798fd971e2c514b67a0f706b8e65165843 (diff)
[IMP] web: editable list: column's widths
This rev. refines the way we compute column's widths in editable list views. When there are displayed records, we let the browser compute the width of each column (which is thus optimal with respect to the content), and we then freeze those widths s.t. it doesn't flicker when we switch a row in edition. When there is no record, we keep the former heuristic based on absolute and relative widths (depending on field types). However, we set the same weight for all fields having a relative width (i.e. all but boolean, date(time) and numeric), such that the remaining space is evenly distributed between them. Co-authored-by: Aaron Bohy <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src/scss')
-rw-r--r--addons/web/static/src/scss/list_view.scss6
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/web/static/src/scss/list_view.scss b/addons/web/static/src/scss/list_view.scss
index f2fc83902a4..148ec6af348 100644
--- a/addons/web/static/src/scss/list_view.scss
+++ b/addons/web/static/src/scss/list_view.scss
@@ -55,7 +55,7 @@
}
}
- .o_column_sortable {
+ .o_column_sortable:not(.o_handle_cell) {
position: relative;
user-select: none; // Prevent unwanted selection while sorting
@@ -180,7 +180,9 @@
//--------------------------------------------------------------------------
&.o_editable_list {
- table-layout: fixed;
+ &.o_empty_list {
+ table-layout: fixed;
+ }
.o_list_record_remove_header, .o_handle_cell {
width: 32px;