From 94c176d791e08e0caed28eb7dec21c7d38329723 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Tue, 16 Apr 2024 15:57:25 +0200 Subject: [PATCH] style(notification): fix pastille position in dossiers list --- app/assets/stylesheets/notifications.scss | 3 +-- app/views/instructeurs/procedures/show.html.haml | 2 +- app/views/recherche/index.html.haml | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/notifications.scss b/app/assets/stylesheets/notifications.scss index 41129cfb8..fb3923cfc 100644 --- a/app/assets/stylesheets/notifications.scss +++ b/app/assets/stylesheets/notifications.scss @@ -8,8 +8,7 @@ span.notifications { background-color: $orange; } -.fr-tabs__list span.notifications, -span.notifications.absolute-right { +.fr-tabs__list span.notifications { z-index: 2; top: 5px; right: 8px; diff --git a/app/views/instructeurs/procedures/show.html.haml b/app/views/instructeurs/procedures/show.html.haml index 29e22e223..a067ef265 100644 --- a/app/views/instructeurs/procedures/show.html.haml +++ b/app/views/instructeurs/procedures/show.html.haml @@ -142,7 +142,7 @@ %a.cell-link.relative{ href: path } = p.dossier_id - if @not_archived_notifications_dossier_ids.include?(p.dossier_id) - %span.notifications.absolute-right{ 'aria-label': 'notifications' } + %span.notifications{ 'aria-label': 'notifications' } - p.columns.each do |column| diff --git a/app/views/recherche/index.html.haml b/app/views/recherche/index.html.haml index 6e123750e..7fb4bce78 100644 --- a/app/views/recherche/index.html.haml +++ b/app/views/recherche/index.html.haml @@ -39,7 +39,7 @@ .cell-link.relative = p.dossier_id - if @notifications_dossier_ids.include?(p.dossier_id) - %span.notifications.absolute-right{ 'aria-label': 'notifications' } + %span.notifications{ 'aria-label': 'notifications' } %td .cell-link= procedure_libelle %td @@ -55,7 +55,7 @@ %a.cell-link.relative{ href: path } = p.dossier_id - if @notifications_dossier_ids.include?(p.dossier_id) - %span.notifications.absolute-right{ 'aria-label': 'notifications' } + %span.notifications{ 'aria-label': 'notifications' } %td %a.cell-link{ href: path }= procedure_libelle