Merge pull request #1235 from betagouv/improve_procedure_champs_readability_in_manager
In manager display libelles with line breaks
This commit is contained in:
commit
f337d95b52
4 changed files with 11 additions and 2 deletions
8
app/assets/stylesheets/new_design/manager.scss
Normal file
8
app/assets/stylesheets/new_design/manager.scss
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
.types-de-champs-table {
|
||||||
|
table-layout: fixed;
|
||||||
|
|
||||||
|
td {
|
||||||
|
white-space: normal;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue