Skip to content
Snippets Groups Projects
Commit f88577ec authored by Julien Mougenot's avatar Julien Mougenot
Browse files

[FIX] web: correctly display styles in list view

Before this commit, there was a slight offset preceding list selectors,
and the red border of invalid fields was not shown in community.

Now list selectors are correctly displayed as well as invalid fields.
parent b416c15a
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,6 @@
width: 100%;
> input {
height: 100%;
padding-right: 15px;
cursor: pointer;
}
......
.o_list_view {
position: relative;
......@@ -88,7 +87,11 @@
}
}
.o_list_record_selector, .o_list_record_remove, .o_handle_cell {
.o_list_record_selector {
width: 40px;
padding-left: $o-horizontal-padding;
}
.o_list_record_remove, .o_handle_cell {
width: 1px; // to prevent the column to expand
}
......@@ -176,9 +179,6 @@
&.o_editable_list {
table-layout: fixed;
.o_list_record_selector {
width: 40px;
}
.o_list_record_remove_header, .o_handle_cell {
width: 32px;
}
......@@ -198,7 +198,6 @@
.o_data_row.o_selected_row > .o_data_cell:not(.o_readonly_modifier) {
position: relative; // for o_field_translate
background-color: white;
.o_input {
border: none;
padding: 0;
......@@ -229,6 +228,7 @@
padding-right: 15px; // to prevent caret overlapping
}
> .o_dropdown_button, .o_datepicker_button {
margin-right: 5px;
@include o-position-absolute(0, 0);
}
}
......
......@@ -11,10 +11,26 @@
background-image: linear-gradient(to bottom, #fcfcfc, $o-form-lightsecondary);
}
}
// Subpixels computation is different accross browsers and platforms as no
// rounding rule is specified by HTML5. Difference in this computation
// breaks one of the editable list tests on Chrome and Firefox on MacOS.
.o_field_many2manytags {
min-height: 21px;
.o_list_table.o_editable_list .o_data_row.o_selected_row > .o_data_cell:not(.o_readonly_modifier) {
padding: .15rem;
.o_input {
border: none;
padding: .15rem;
.o_input {
box-shadow: none;
padding: 0;
}
}
select.o_input {
padding: .25rem 0;
}
.o_field_boolean {
padding-top: .15rem;
padding-bottom: .15rem;
}
&.o_invalid_cell .o_input {
box-shadow: 0 0 0 1px theme-color('danger');
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment