Merge pull request #5518 from betagouv/fix-procedures-list-layout
Administrateur : correction de l'affichage du logo des démarches sous Safari
This commit is contained in:
commit
a845922df6
2 changed files with 20 additions and 10 deletions
11
app/assets/stylesheets/new_design/admin-procedures-list.scss
Normal file
11
app/assets/stylesheets/new_design/admin-procedures-list.scss
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
// Push the timestamps column to the right of the row
|
||||||
|
.admin-procedures-list-timestamps {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fix a Safari flexbox bug where the inner procedure logo
|
||||||
|
// would stretch the container vertically.
|
||||||
|
// See https://stackoverflow.com/questions/57516373/image-stretching-in-flexbox-in-safari
|
||||||
|
.admin-procedures-list-row.infos {
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
|
@ -1,7 +1,6 @@
|
||||||
- procedures.each do |procedure|
|
- procedures.each do |procedure|
|
||||||
.card
|
.card
|
||||||
.flex.justify-between
|
.admin-procedures-list-row.infos.flex
|
||||||
.flex
|
|
||||||
- if procedure.logo.present?
|
- if procedure.logo.present?
|
||||||
= image_tag procedure.logo, alt: procedure.libelle, width: '100'
|
= image_tag procedure.logo, alt: procedure.libelle, width: '100'
|
||||||
.flex.column.ml-1
|
.flex.column.ml-1
|
||||||
|
@ -9,7 +8,7 @@
|
||||||
= link_to procedure.libelle, admin_procedure_path(procedure), style: 'color: black;'
|
= link_to procedure.libelle, admin_procedure_path(procedure), style: 'color: black;'
|
||||||
= link_to(procedure_lien(procedure), procedure_lien(procedure), class: 'procedure-lien mb-1')
|
= link_to(procedure_lien(procedure), procedure_lien(procedure), class: 'procedure-lien mb-1')
|
||||||
|
|
||||||
%div
|
.admin-procedures-list-timestamps
|
||||||
%p.notice N° #{procedure.id}
|
%p.notice N° #{procedure.id}
|
||||||
%p.notice créée le #{procedure.created_at.strftime('%d/%m/%Y')}
|
%p.notice créée le #{procedure.created_at.strftime('%d/%m/%Y')}
|
||||||
- if procedure.published_at.present?
|
- if procedure.published_at.present?
|
||||||
|
@ -17,7 +16,7 @@
|
||||||
- if procedure.closed_at.present?
|
- if procedure.closed_at.present?
|
||||||
%p.notice archivée le #{procedure.closed_at.strftime('%d/%m/%Y')}
|
%p.notice archivée le #{procedure.closed_at.strftime('%d/%m/%Y')}
|
||||||
|
|
||||||
.flex.justify-between
|
.admin-procedures-list-row.actions.flex.justify-between
|
||||||
%div
|
%div
|
||||||
- if feature_enabled?(:administrateur_routage)
|
- if feature_enabled?(:administrateur_routage)
|
||||||
%span.icon.person
|
%span.icon.person
|
||||||
|
|
Loading…
Add table
Reference in a new issue