Merge pull request #1235 from betagouv/improve_procedure_champs_readability_in_manager

In manager display libelles with line breaks
This commit is contained in:
gregoirenovel 2018-01-11 11:19:30 +01:00 committed by GitHub
commit f337d95b52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 2 deletions

View file

@ -0,0 +1,8 @@
.types-de-champs-table {
table-layout: fixed;
td {
white-space: normal;
vertical-align: top;
}
}

View file

@ -1,5 +1,5 @@
- if field.data.any? - if field.data.any?
%table.collection-data{ "aria-labelledby": "page-title" } %table.collection-data.types-de-champs-table{ "aria-labelledby": "page-title" }
%thead %thead
%tr %tr
%td.cell-label Libelle %td.cell-label Libelle

View file

@ -20,6 +20,7 @@
= content_for(:title) = content_for(:title)
| #{Rails.application.class.parent_name.titlecase} | #{Rails.application.class.parent_name.titlecase}
= render "stylesheet" = render "stylesheet"
= stylesheet_link_tag "new_design/manager", media: "all", "data-turbolinks-track": true
= csrf_meta_tags = csrf_meta_tags
%body %body
.app-container .app-container

View file

@ -8,4 +8,4 @@ Rails.application.config.assets.version = '1.0'
# Precompile additional assets. # Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
Rails.application.config.assets.precompile += %w(print.css new_design/new_application.css new_design/print.css new_design/application.js) Rails.application.config.assets.precompile += %w(print.css new_design/new_application.css new_design/print.css new_design/application.js new_design/manager.css)