minor change
This commit is contained in:
@@ -604,6 +604,7 @@ export class Flow extends PureComponent {
|
|||||||
if(this.state.mode==='list') {
|
if(this.state.mode==='list') {
|
||||||
API.get_list(page,this.props.token)
|
API.get_list(page,this.props.token)
|
||||||
.then((json)=>{
|
.then((json)=>{
|
||||||
|
if(page===1)
|
||||||
json.data.forEach((x)=>{
|
json.data.forEach((x)=>{
|
||||||
if(parseInt(x.pid,10)>(parseInt(localStorage['_LATEST_POST_ID'],10)||0))
|
if(parseInt(x.pid,10)>(parseInt(localStorage['_LATEST_POST_ID'],10)||0))
|
||||||
localStorage['_LATEST_POST_ID']=x.pid;
|
localStorage['_LATEST_POST_ID']=x.pid;
|
||||||
|
|||||||
@@ -33,11 +33,11 @@
|
|||||||
flex: 0 0 2em;
|
flex: 0 0 2em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: black;
|
color: black;
|
||||||
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
.control-btn:hover {
|
.control-btn:hover {
|
||||||
background-color: #555555;
|
background-color: #555555;
|
||||||
color: white;
|
color: white;
|
||||||
border-radius: 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-btn .icon:before {
|
.control-btn .icon:before {
|
||||||
|
|||||||
Reference in New Issue
Block a user