From 8dcfb82e42dd72e44930d9df7bf476d6a6d08c3e Mon Sep 17 00:00:00 2001 From: Julien Mougenot Date: Tue, 18 Oct 2022 08:22:48 +0000 Subject: [PATCH] [FIX] web: Force kanban title opacity in no-content Before this commit, since there is a mildly transparent filter over the entire view when the "no content" helper is displayed, the interactive elements of the empty kanban view (namely: the title with the name and "quick create" button) were slightly hidden. This commit enforces a superior z-index on those elements s.t. they can appear on top of the helper's filter. closes odoo/odoo#105140 X-original-commit: cbefc9cd51b3c903a6c54d8e3f95bf2b592cf402 Signed-off-by: Aaron Bohy (aab) --- .../static/src/views/kanban/kanban_controller.scss | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/addons/web/static/src/views/kanban/kanban_controller.scss b/addons/web/static/src/views/kanban/kanban_controller.scss index 30562821292..1f38ee15885 100644 --- a/addons/web/static/src/views/kanban/kanban_controller.scss +++ b/addons/web/static/src/views/kanban/kanban_controller.scss @@ -447,7 +447,7 @@ } .oe_kanban_text_red { - color: o-text-color('danger'); + color: o-text-color("danger"); font-weight: $font-weight-bold; } @@ -474,10 +474,12 @@ .o_kanban_record { width: 100%; } - + @include media-breakpoint-up(md) { &.o_kanban_small_column .o_kanban_group:not(.o_column_folded) { - flex-basis: calc(var(--KanbanRecord--small-width) + (2 * var(--KanbanGroup-padding-h))); + flex-basis: calc( + var(--KanbanRecord--small-width) + (2 * var(--KanbanGroup-padding-h)) + ); } } } @@ -488,6 +490,9 @@ padding: 0 var(--KanbanGroup-padding-h) var(--KanbanGroup-padding-bottom); .o_kanban_header > .o_kanban_header_title { + // Makes the title come on top of the "no-content" background gradient. + z-index: 2; + &:hover .o_kanban_config, .o_kanban_config.show { visibility: visible;