Word wrap feedback in admin console

This commit is contained in:
Tom Bloor 2017-10-23 15:02:18 +01:00
parent afac877d12
commit 6c798d8d3f
4 changed files with 7 additions and 2 deletions

View file

@ -2,6 +2,7 @@
# Next Release # Next Release
* **Admin Feature** Feedback items now word wrap
* Location is now updated on registration. Customers location is truncated to 2 * Location is now updated on registration. Customers location is truncated to 2
decimal places based on their postcode. decimal places based on their postcode.
* Location is also updated on changing a users postcode * Location is also updated on changing a users postcode

View file

@ -15,3 +15,7 @@ body {
height: 400px; height: 400px;
background-color: grey; background-color: grey;
} }
.feedback-text {
white-space: pre-wrap;
}

View file

@ -22,7 +22,7 @@
<h6 class="card-title"> <h6 class="card-title">
%= format_human_datetime $feedback->submitted_at; %= format_human_datetime $feedback->submitted_at;
</h6> </h6>
<pre class="card-text"><%= truncate_text $feedback->feedbacktext => 50; %></pre> <pre class="card-text feedback-text"><%= truncate_text $feedback->feedbacktext => 50; %></pre>
</div> </div>
<div class="card-footer text-right"> <div class="card-footer text-right">
<a href="<%= url_for . '/' . $feedback->id %>" class="card-link"> <a href="<%= url_for . '/' . $feedback->id %>" class="card-link">

View file

@ -36,7 +36,7 @@
</h4> </h4>
<div class="card-body"> <div class="card-body">
<div class="card-text"> <div class="card-text">
<pre><%= $feedback->feedbacktext %></pre> <pre class="feedback-text"><%= $feedback->feedbacktext %></pre>
</div> </div>
</div> </div>
</div> </div>