Skip to content

Commit

Permalink
[FIX] mail: activity view: progress bar counters
Browse files Browse the repository at this point in the history
The commit odoo@c877cab
has recently refactored the css of the kanban column progress bar making
the rules for o_legacy_kanban_counter be applied only in legacy kanban
views. This lead the style of the progress bars in activity view to be
broken. Here we fix that style by copying the rules we want in the
file activity_view.scss.

closes odoo#102482

Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
  • Loading branch information
Polymorphe57 committed Oct 6, 2022
1 parent 3450e48 commit 84788c2
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions addons/mail/static/src/scss/activity_view.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,48 @@
}
}
}

.o_legacy_kanban_counter {
position: relative;
display: flex;
align-items: center;
transition: opacity 0.3s ease 0s;
margin-bottom: $o-kanban-record-margin*2;

> .o_kanban_counter_progress {
width: 76%;
height: $font-size-sm;
margin-bottom: 0;
background-color: map-get($grays, '300');
box-shadow: none;

.progress-bar {
margin-bottom: 0;
box-shadow: none;
cursor: pointer;
}
}

> .o_kanban_counter_side {
width: 21%;
margin-left: 3%;
color: $headings-color;
text-align: right;
white-space: nowrap;
transform-origin: right center;

&.o_kanban_grow {
animation: legacy-kanban-counter-grow 1s ease 0s 1 normal none running;
}

&.o_kanban_grow_huge {
animation: legacy-kanban-counter-grow-huge 1s ease 0s 1 normal none running;
}

// Target currency icon
> span {
margin-left: 2px;
}
}
}
}

0 comments on commit 84788c2

Please sign in to comment.