Skip to content

Commit

Permalink
Use white-space: pre-wrap on all survey result columns
Browse files Browse the repository at this point in the history
  • Loading branch information
tjgrathwell committed Jul 19, 2014
1 parent 1848a66 commit 9a9df25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/_tables.css.scss
Expand Up @@ -62,6 +62,9 @@ table.checkins {
}

table.survey-results {
td {
white-space: pre-wrap;
}
th:nth-child(1) { width: 30% }
th:nth-child(2) { width: 40% }
th:nth-child(3) { width: 30% }
Expand Down
4 changes: 3 additions & 1 deletion app/views/surveys/_results.html.erb
@@ -1,9 +1,10 @@
<table class="table survey-results responsive-table">
<thead>
<tr>
<th class="">What was great?</th>
<th>What was great?</th>
<th>What could have been better?</th>
<th>Comments</th>
<th title="Likelihood to recommend to a friend or colleague">#</th>
</tr>
</thead>
<% rsvps.each do |rsvp| %>
Expand All @@ -13,6 +14,7 @@
<td data-label="What was great:"><%= survey.good_things%></td>
<td data-label="What could have been better:"><%= survey.bad_things %></td>
<td data-label="Comments:"><%= survey.other_comments %></td>
<td data-label="Recommendation likelihood:"><%= survey.recommendation_likelihood %></td>
</tr>
<% end %>
<% end %>
Expand Down

0 comments on commit 9a9df25

Please sign in to comment.