Word wrap feedback in admin console
This commit is contained in:
parent
afac877d12
commit
6c798d8d3f
4 changed files with 7 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
# Next Release
|
||||
|
||||
* **Admin Feature** Feedback items now word wrap
|
||||
* Location is now updated on registration. Customers location is truncated to 2
|
||||
decimal places based on their postcode.
|
||||
* Location is also updated on changing a users postcode
|
||||
|
|
|
@ -15,3 +15,7 @@ body {
|
|||
height: 400px;
|
||||
background-color: grey;
|
||||
}
|
||||
|
||||
.feedback-text {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<h6 class="card-title">
|
||||
%= format_human_datetime $feedback->submitted_at;
|
||||
</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 class="card-footer text-right">
|
||||
<a href="<%= url_for . '/' . $feedback->id %>" class="card-link">
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
</h4>
|
||||
<div class="card-body">
|
||||
<div class="card-text">
|
||||
<pre><%= $feedback->feedbacktext %></pre>
|
||||
<pre class="feedback-text"><%= $feedback->feedbacktext %></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in a new issue