Browse Source

Add height limit to user infomation in ranklist

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

2
views/index.ejs

@ -46,7 +46,7 @@
(function () {
var html = <%- JSON.stringify(user.information) %>;
var elem = document.createElement('div');
elem.style = 'max-height: 50px; overflow: hidden; width: 100%; ';
elem.style = 'max-height: 50px; overflow: hidden; width: 100%; max-width: 480px; ';
elem.innerHTML = html;
var script = document.getElementById('user-infomation-script-<%= i %>');
script.parentNode.replaceChild(elem, script);

2
views/ranklist.ejs

@ -30,7 +30,7 @@
(function () {
var html = <%- JSON.stringify(user.information) %>;
var elem = document.createElement('div');
elem.style = 'max-height: 50px; overflow: hidden; width: 100%; ';
elem.style = 'max-height: 50px; overflow: hidden; width: 100%; max-width: 840px; ';
elem.innerHTML = html;
var script = document.getElementById('user-infomation-script-<%= i %>');
script.parentNode.replaceChild(elem, script);

Loading…
Cancel
Save