From 87bee9d234eb154363a6cd152430a30747096480 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Fri, 23 Apr 2021 21:16:56 +0200 Subject: [PATCH] set img height and width --- app/views/instructeurs/procedures/_header_field.html.haml | 4 ++-- app/views/layouts/_account_dropdown.haml | 2 +- app/views/layouts/_search_dossiers_form.html.haml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/instructeurs/procedures/_header_field.html.haml b/app/views/instructeurs/procedures/_header_field.html.haml index ee8d56d2a..58a73ba15 100644 --- a/app/views/instructeurs/procedures/_header_field.html.haml +++ b/app/views/instructeurs/procedures/_header_field.html.haml @@ -3,6 +3,6 @@ = field['label'] - if @procedure_presentation.sort['table'] == field['table'] && @procedure_presentation.sort['column'] == field['column'] - if @procedure_presentation.sort['order'] == 'asc' - %img.caret-icon{ src: image_url("table/up_caret.svg") } + %img.caret-icon{ src: image_url("table/up_caret.svg"), width: 10, height: 6, loading: 'lazy' } - else - %img.caret-icon{ src: image_url("table/down_caret.svg") } + %img.caret-icon{ src: image_url("table/down_caret.svg"), width: 10, height: 6, loading: 'lazy' } diff --git a/app/views/layouts/_account_dropdown.haml b/app/views/layouts/_account_dropdown.haml index e1c239238..4b9b56d50 100644 --- a/app/views/layouts/_account_dropdown.haml +++ b/app/views/layouts/_account_dropdown.haml @@ -1,7 +1,7 @@ .dropdown.header-menu-opener %button.button.dropdown-button.icon-only.header-menu-button{ title: "Mon compte", 'aria-expanded' => 'false', 'aria-controls' => 'mon_compte_menu' } .hidden Mon compte - = image_tag "icons/account-circle.svg", alt: 'Mon compte' + = image_tag "icons/account-circle.svg", alt: 'Mon compte', width: 24, height: 24, loading: 'lazy' %ul.header-menu.dropdown-content#mon_compte_menu %li .menu-item{ title: current_email } diff --git a/app/views/layouts/_search_dossiers_form.html.haml b/app/views/layouts/_search_dossiers_form.html.haml index 113bc14c9..2623a10eb 100644 --- a/app/views/layouts/_search_dossiers_form.html.haml +++ b/app/views/layouts/_search_dossiers_form.html.haml @@ -3,4 +3,4 @@ = label_tag :q, "Numéro de dossier", class: 'hidden' = text_field_tag "q", "#{@search_terms if @search_terms.present?}", placeholder: "Rechercher un dossier" %button{ title: "Rechercher" } - = image_tag "icons/search-blue.svg", alt: 'Rechercher', 'aria-hidden':'true' + = image_tag "icons/search-blue.svg", alt: 'Rechercher', 'aria-hidden':'true', width: 24, height: 24, loading: 'lazy'