Browse Source

Small fixes

pull/6/head
Menci 7 years ago
parent
commit
b30b469ef0
  1. 2
      views/index.ejs
  2. 2
      views/ranklist.ejs

2
views/index.ejs

@ -58,7 +58,7 @@
(function () {
var html = <%- JSON.stringify(user.information) %>;
var elem = document.createElement('div');
elem.style = 'overflow: hidden; width: 100%; max-width: 480px; ';
elem.style = 'overflow: hidden; width: 100%; ';
elem.style.maxHeight = lineHeight + 'px';
elem.innerHTML = html;
var imgs = Array.from(elem.getElementsByTagName('img'));

2
views/ranklist.ejs

@ -42,7 +42,7 @@
(function () {
var html = <%- JSON.stringify(user.information) %>;
var elem = document.createElement('div');
elem.style = 'overflow: hidden; width: 100%; max-width: 840px; ';
elem.style = 'overflow: hidden; width: 100%; ';
elem.style.maxHeight = lineHeight + 'px';
elem.innerHTML = html;
var imgs = Array.from(elem.getElementsByTagName('img'));

Loading…
Cancel
Save