From c6d0ea76bbddb90369db0abdf4db73c3a34b638a Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Fri, 5 May 2017 16:45:49 +0200 Subject: [PATCH] [Fix #174] Make .default-data-block header titles take the full width --- app/assets/stylesheets/default_data_block.scss | 8 ++++++-- .../users/description/champs/_header_section.html.haml | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/default_data_block.scss b/app/assets/stylesheets/default_data_block.scss index 1f37e839f..dbf7c0bd5 100644 --- a/app/assets/stylesheets/default_data_block.scss +++ b/app/assets/stylesheets/default_data_block.scss @@ -33,7 +33,7 @@ .header { background-color: #003C92; - height: 40px; + min-height: 40px; color: #FFFFFF; font-size: 18px; font-weight: bold; @@ -42,7 +42,6 @@ .title-no-expanse, .action, .count { - height: 100%; line-height: 40px; padding: 0px; text-transform: uppercase; @@ -58,6 +57,11 @@ cursor: pointer; } + .title-content { + width: calc(100% - 50px); + float: left; + } + .action { background-color: #E45B51; text-align: center; diff --git a/app/views/users/description/champs/_header_section.html.haml b/app/views/users/description/champs/_header_section.html.haml index b75094c2a..cafbe73ae 100644 --- a/app/views/users/description/champs/_header_section.html.haml +++ b/app/views/users/description/champs/_header_section.html.haml @@ -4,6 +4,8 @@ .col-xs-12.title .carret-right .carret-down - = libelle + .title-content + = libelle + .clearfix .body = render partial: 'users/description/champs/render_list_champs', locals: { champs: champs, order_place: order_place }