diff --git a/views/index.ejs b/views/index.ejs index 46b0fad..da19f0b 100644 --- a/views/index.ejs +++ b/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); diff --git a/views/ranklist.ejs b/views/ranklist.ejs index 16fcbfd..12d8c7d 100644 --- a/views/ranklist.ejs +++ b/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);