From 648791356ca4288eedcbff5dfec79ac6e278a6f0 Mon Sep 17 00:00:00 2001 From: troyeguo <13820674+troyeguo@users.noreply.github.com> Date: Fri, 12 Feb 2021 13:58:53 +0800 Subject: [PATCH] fix bug Former-commit-id: c3fd29328f60eb5fa66a88a874018db803fdd69f --- src/components/bookCoverItem/component.tsx | 4 ++-- src/components/updateInfo/component.tsx | 12 +++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/bookCoverItem/component.tsx b/src/components/bookCoverItem/component.tsx index 8501b412..f158a870 100644 --- a/src/components/bookCoverItem/component.tsx +++ b/src/components/bookCoverItem/component.tsx @@ -194,7 +194,7 @@ class BookCoverItem extends React.Component { onClick={() => { this.handleCancelLoveBook(); }} - style={{ right: "300px" }} + style={{ right: "274px", bottom: "25px" }} > ) : null} @@ -229,7 +229,7 @@ class BookCoverItem extends React.Component { onClick={() => { this.handleLoveBook(); }} - style={{ right: "270px", bottom: "55px" }} + style={{ right: "275px", bottom: "25px" }} > ) : null} diff --git a/src/components/updateInfo/component.tsx b/src/components/updateInfo/component.tsx index 4a79c40d..c951ae9e 100644 --- a/src/components/updateInfo/component.tsx +++ b/src/components/updateInfo/component.tsx @@ -50,7 +50,7 @@ class UpdateInfo extends React.Component { this.props.handleNewDialog(true); } else if ( OtherUtil.getReaderConfig("version") !== newVersion && - OtherUtil.getReaderConfig("isFirst") !== "yes" + OtherUtil.getReaderConfig("isFirst") ) { this.setState({ isUpdated: true }); this.props.handleNewDialog(true); @@ -115,10 +115,12 @@ class UpdateInfo extends React.Component { > -
- You successfully update to - {" " + version} -
+ {this.state.isUpdated && ( +
+ You successfully update to + {" " + version} +
+ )}
{this.state.isUpdated ? (