diff --git a/static/css/start.css b/static/css/start.css index ffe169e..8e152fd 100644 --- a/static/css/start.css +++ b/static/css/start.css @@ -71,6 +71,8 @@ border-left: 1px solid #f1f1f1; margin-left: 10%; padding-left: 10%; + white-space: nowrap; + overflow: hidden; } #startPage .news li { diff --git a/static/js/editors.js b/static/js/editors.js index 11aadd1..42cf247 100644 --- a/static/js/editors.js +++ b/static/js/editors.js @@ -283,7 +283,7 @@ var editors = { $("#startPage").height($('.side-right').height() - $(".bottom-window-group").children(".tabs").height() - 100); $("#startPage").load(config.context + '/start?sid=' + config.wideSessionId); $.ajax({ - url: "https://symphony.b3log.org/apis/articles?tags=wide,golang&p=1&size=30", + url: "https://symphony.b3log.org/apis/articles?tags=wide,golang&p=1&size=20", type: "GET", dataType: "jsonp", jsonp: "callback", @@ -293,10 +293,10 @@ var editors = { return; } - // 按 size = 30 取,但只保留最多 10 篇 + // 按 size = 20 取,但只保留最多 9 篇 var length = articles.length; - if (length > 10) { - length = 10; + if (length > 9) { + length = 9; } var listHTML = "