From f3b0794e82a1e927867ff72a3946cb9b12eaf5ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Charignon?= Date: Wed, 5 Feb 2025 17:57:55 +0100 Subject: [PATCH] Ne souligne pas les images clicable des show des questions --- app/assets/stylesheets/admin/_adaptation_dsfr.scss | 5 +++++ app/views/admin/questions/_show_illustration.html.erb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/admin/_adaptation_dsfr.scss b/app/assets/stylesheets/admin/_adaptation_dsfr.scss index b211190ad..ea07c9b2d 100644 --- a/app/assets/stylesheets/admin/_adaptation_dsfr.scss +++ b/app/assets/stylesheets/admin/_adaptation_dsfr.scss @@ -9,6 +9,11 @@ ol > li::marker { a, a:link, a:visited { text-decoration: none; } + +a.pas-souligne { + background-image: none; +} + .tarteaucitronSelfLink { background-image: none; &::after { diff --git a/app/views/admin/questions/_show_illustration.html.erb b/app/views/admin/questions/_show_illustration.html.erb index 83ad04b91..69a0131f8 100644 --- a/app/views/admin/questions/_show_illustration.html.erb +++ b/app/views/admin/questions/_show_illustration.html.erb @@ -1,5 +1,5 @@ <% if illustration.attached? %> - <%= link_to cdn_for(illustration), target: '_blank', rel: 'noopener' do %> + <%= link_to cdn_for(illustration), target: '_blank', rel: 'noopener', class: 'pas-souligne' do %> <%= image_tag cdn_for(illustration), class: 'image-preview', alt: illustration.filename %> <% end %> <% else %>