diff --git a/app/assets/stylesheets/models/score_items.css.scss b/app/assets/stylesheets/models/score_items.css.scss index def6639ef6..efee2a8df1 100644 --- a/app/assets/stylesheets/models/score_items.css.scss +++ b/app/assets/stylesheets/models/score_items.css.scss @@ -23,11 +23,11 @@ } td.visibility { - width: 20px; + width: 60px; } td.maximum { - width: 105px; + width: 100px; padding-right: 20px; } @@ -40,8 +40,13 @@ width: 250px; } - td.wide-description { - width: 650px; + td.add-score-items { + text-align: center; + + // padding is used to center the button + // padding-right: 90px = 250px (td.name) - 60px (td.visibility) - 100px (td.maximum) + // top and bottom padding is 0 to avoid double padding with the button + padding: 0 90px 0 0; } .maximum-row { diff --git a/app/views/score_items/_exercise.html.erb b/app/views/score_items/_exercise.html.erb index 24764e278a..5cbc1ff930 100644 --- a/app/views/score_items/_exercise.html.erb +++ b/app/views/score_items/_exercise.html.erb @@ -22,12 +22,7 @@ <% if evaluation_exercise.score_items.empty? %> -
<%= t 'score_items.exercise.nothing' %>
-
- - <%= t ".add" %> - -
+ <%= t 'score_items.exercise.nothing' %> <% else %> @@ -47,7 +42,12 @@ <% end %> <% end %> - <%= t '.max' %> + <%= t '.max' %> + + + <%= t ".add" %> + + <%= format_score maximum_score %>