Browse Source

Add user information height limit on index and ranklist

master
Menci 8 years ago
parent
commit
3ec22c4aea
  1. 6
      views/index.ejs
  2. 8
      views/ranklist.ejs

6
views/index.ejs

@ -41,7 +41,11 @@
<tr>
<td><%= i %></td>
<td><a href="<%= syzoj.utils.makeUrl(['user', user.id]) %>"><%= user.username %></a><% if (user.nameplate) { %><%- user.nameplate %><% } %></td>
<td><%- user.information %></td>
<td>
<div style="max-height: 70px; overflow: hidden; ">
<%- user.information %>
</div>
</td>
</tr>
<%
} %>

8
views/ranklist.ejs

@ -22,10 +22,14 @@
for (let user of ranklist) {
++i;
%>
<tr>
<tr>
<td><%= i %></td>
<td><a href="<%= syzoj.utils.makeUrl(['user', user.id]) %>"><%= user.username %></a><% if (user.nameplate) { %><%- user.nameplate %><% } %></td>
<td><%- user.information %></td>
<td>
<div style="max-height: 70px; overflow: hidden; ">
<%- user.information %>
</div>
</td>
<td><%= user.ac_num %></td>
</tr>
<% } %>

Loading…
Cancel
Save