Browse Source

Set user infomation in ranklist height limit to 50px

pull/6/head
Menci 8 years ago
parent
commit
2f2e567b80
  1. 4
      views/index.ejs
  2. 2
      views/ranklist.ejs

4
views/index.ejs

@ -42,10 +42,10 @@
<td><%= i %></td> <td><%= i %></td>
<td><a href="<%= syzoj.utils.makeUrl(['user', user.id]) %>"><%= user.username %></a><% if (user.nameplate) { %><%- user.nameplate %><% } %></td> <td><a href="<%= syzoj.utils.makeUrl(['user', user.id]) %>"><%= user.username %></a><% if (user.nameplate) { %><%- user.nameplate %><% } %></td>
<td> <td>
<div style="max-height: 70px; overflow: hidden; "> <div style="max-height: 50px; overflow: hidden; ">
<table width="100%"><tr style="border: none; "><td style="padding: 0; "> <table width="100%"><tr style="border: none; "><td style="padding: 0; ">
<%- user.information %> <%- user.information %>
</td></table> </td></tr></table>
</div> </div>
</td> </td>
</tr> </tr>

2
views/ranklist.ejs

@ -26,7 +26,7 @@
<td><%= i %></td> <td><%= i %></td>
<td><a href="<%= syzoj.utils.makeUrl(['user', user.id]) %>"><%= user.username %></a><% if (user.nameplate) { %><%- user.nameplate %><% } %></td> <td><a href="<%= syzoj.utils.makeUrl(['user', user.id]) %>"><%= user.username %></a><% if (user.nameplate) { %><%- user.nameplate %><% } %></td>
<td> <td>
<div style="max-height: 70px; overflow: hidden; "> <div style="max-height: 50px; overflow: hidden; ">
<table width="100%"><tr style="border: none; "><td style="padding: 0; "> <table width="100%"><tr style="border: none; "><td style="padding: 0; ">
<%- user.information %> <%- user.information %>
</td></tr></table> </td></tr></table>

Loading…
Cancel
Save