作业详情页的测试集样式调整

This commit is contained in:
cxt 2016-09-23 18:24:30 +08:00
parent e75f320244
commit b49e29860d
1 changed files with 4 additions and 4 deletions

View File

@ -52,14 +52,14 @@
<table class="mt5 test-set-table">
<tr>
<th width="25">&nbsp;</th>
<th width="290">测试集输入</th>
<th width="290">测试集输出</th>
<th width="290" style="max-width:290px;">测试集输入</th>
<th width="290" style="max-width:290px;">测试集输出</th>
</tr>
<% homework.homework_tests.each_with_index do |test, i| %>
<tr>
<td class="test_td_min"><%=i+1 %></td>
<td><%=test.input %></td>
<td ><%=test.output %></td>
<td><pre style="max-width:290px; word-wrap:break-word; white-space:pre-wrap;"><%=test.input %></pre></td>
<td><pre style="max-width:290px; word-wrap:break-word; white-space:pre-wrap;"><%=test.output %></pre></td>
</tr>
<% end %>
</table>