From 0bdc6d600fe05e36cce5e54f9bdf5afeeb2ccda3 Mon Sep 17 00:00:00 2001 From: xmcp Date: Fri, 10 May 2019 10:22:04 +0800 Subject: [PATCH] minor change --- src/Flows.js | 9 +++++---- src/Title.css | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Flows.js b/src/Flows.js index 0a98c77..627a51f 100644 --- a/src/Flows.js +++ b/src/Flows.js @@ -604,10 +604,11 @@ export class Flow extends PureComponent { if(this.state.mode==='list') { API.get_list(page,this.props.token) .then((json)=>{ - json.data.forEach((x)=>{ - if(parseInt(x.pid,10)>(parseInt(localStorage['_LATEST_POST_ID'],10)||0)) - localStorage['_LATEST_POST_ID']=x.pid; - }); + if(page===1) + json.data.forEach((x)=>{ + if(parseInt(x.pid,10)>(parseInt(localStorage['_LATEST_POST_ID'],10)||0)) + localStorage['_LATEST_POST_ID']=x.pid; + }); this.setState((prev,props)=>({ chunks: { title: 'News Feed', diff --git a/src/Title.css b/src/Title.css index 556d396..90c4c26 100644 --- a/src/Title.css +++ b/src/Title.css @@ -33,11 +33,11 @@ flex: 0 0 2em; text-align: center; color: black; + border-radius: 5px; } .control-btn:hover { background-color: #555555; color: white; - border-radius: 5px; } .control-btn .icon:before {