summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/list_view.scss
diff options
context:
space:
mode:
authorJulien Mougenot <jum@odoo.com>2019-09-16 11:49:00 +0000
committerJulien Mougenot <jum@odoo.com>2019-09-20 07:28:17 +0000
commitfd3c3821861dcfecdd63079c799863002fd67d71 (patch)
tree8faa735dd734602771cb6ebcf85d45e416c3f7b4 /addons/web/static/src/scss/list_view.scss
parent8901146b911e2e9d56a0cb55529f6ff4567a2211 (diff)
[FIX] web: field color: adapted for views
The FieldColor widget had been designed exclusively for the document layout configurator. Because of this, the widget would not display/behave correctly in other views. Before this commit: - in list views, the widget had a "white-space" attribute adapted for char fields, which gave it much more space than it needed - there was no handling of the widget in readonly state: it was always editable - its size in list views was a bit too large Now: - all styling problems have been adjusted for list views (unchanged for forms) - the widget is disabled when in readonly mode Task 2072466 closes odoo/odoo#36949 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/scss/list_view.scss')
-rw-r--r--addons/web/static/src/scss/list_view.scss6
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/web/static/src/scss/list_view.scss b/addons/web/static/src/scss/list_view.scss
index 0e62f071d42..6c3d452fb47 100644
--- a/addons/web/static/src/scss/list_view.scss
+++ b/addons/web/static/src/scss/list_view.scss
@@ -34,7 +34,7 @@
&.o_list_number {
text-align: right;
}
- &.o_list_char,
+ &.o_list_char:not(.o_color_cell),
&.o_list_text,
&.o_list_many2one {
white-space: pre-wrap;
@@ -42,6 +42,10 @@
&.o_list_text {
word-break: break-word;
}
+ &.o_list_char.o_color_cell .o_field_color {
+ width: 17px;
+ height: 17px;
+ }
}
tfoot {