长单词强制折行
This commit is contained in:
parent
2735aca331
commit
e72b2de6e2
|
@ -13,7 +13,7 @@
|
|||
<% poll_question.poll_votes.where("user_id = #{User.current.id}").each do |answer|%>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="ml20">
|
||||
<p class="ml20 break_word">
|
||||
<%= answer.poll_answer.answer_text == "" ? (answer.vote_text.nil? ? "其他" : answer.vote_text) : answer.poll_answer.answer_text %>
|
||||
</p>
|
||||
</td>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<% poll_question.poll_votes.where("user_id = #{User.current.id}").each do |answer|%>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="ml20">
|
||||
<p class="ml20 break_word">
|
||||
<%= answer.poll_answer.answer_text == "" ? (answer.vote_text.nil? ? "其他" : answer.vote_text) : answer.poll_answer.answer_text %>
|
||||
</p>
|
||||
</td>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<% poll_question.poll_answers.reorder("answer_position").each_with_index do |poll_answer, i| %>
|
||||
<div class="ml40 mb10">
|
||||
<p class="mb10"><%= i + 1 %>.<%= poll_answer.answer_text%></p>
|
||||
<p class="ml20">
|
||||
<p class="ml20 break_word">
|
||||
<%= get_anwser_vote_text(poll_question.id,User.current.id,poll_answer.id).html_safe%>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</div>
|
||||
<div class="cl"></div>
|
||||
<div class="ur_inputs">
|
||||
<p class="ml20">
|
||||
<p class="ml20 break_word">
|
||||
<%= get_anwser_vote_text poll_question.id,User.current.id%>
|
||||
</p>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue