style(avis): use fr-badge for count instead of broken css

This commit is contained in:
Colin Darie 2022-10-06 12:58:02 +02:00
parent 7dd3a42cd7
commit 71996af65b
5 changed files with 4 additions and 16 deletions

View file

@ -74,18 +74,6 @@
} }
.list-avis { .list-avis {
.count {
display: inline-block;
width: 20px;
height: 20px;
border-radius: 10px;
border: 1px solid $grey;
text-align: center;
font-size: 12px;
font-weight: normal;
margin-left: 8px;
}
.one-avis { .one-avis {
border-top: 1px solid $grey; border-top: 1px solid $grey;
padding: $default-padding 0; padding: $default-padding 0;

View file

@ -1,7 +1,7 @@
%section.list-avis %section.list-avis
%h1.tab-title %h1.tab-title
Avis des invités Avis des invités
%span.count= avis.count %span.fr-badge= avis.count
%ul %ul
- avis.each do |avis| - avis.each do |avis|

View file

@ -14,7 +14,7 @@
%section.list-avis.mt-8 %section.list-avis.mt-8
%h1.tab-title %h1.tab-title
Messages envoyés précedemment Messages envoyés précedemment
%span.count= @bulk_messages.count %span.fr-badge= @bulk_messages.count
%ul %ul
- @bulk_messages.each do |message| - @bulk_messages.each do |message|

View file

@ -1,7 +1,7 @@
%section.list-avis %section.list-avis
%h1.tab-title %h1.tab-title
Avis des invités Avis des invités
%span.count= avis.count %span.fr-badge= avis.count
%ul %ul
- avis.each do |avis| - avis.each do |avis|

View file

@ -282,7 +282,7 @@
%section.list-avis %section.list-avis
%h1.title %h1.title
Avis des invités Avis des invités
%span.count 1 %span.fr-badge 1
%ul %ul
%li.one-avis %li.one-avis