From 5d2d55eef5e7d3fb4f5ec7ab1d65ea50122fc097 Mon Sep 17 00:00:00 2001 From: Rajarshee Chatterjee Date: Mon, 4 Jan 2021 09:07:42 +0530 Subject: [PATCH] Fix novel backdrop gradient --- src/components/ChapterCard.js | 2 +- src/components/NovelInfoHeader.js | 57 +++++++++++--------------- src/components/NovelItemBottomSheet.js | 1 - src/screens/ChapterItem.js | 7 ++++ src/screens/More/About.js | 2 +- src/screens/More/Settings.js | 2 +- 6 files changed, 35 insertions(+), 36 deletions(-) diff --git a/src/components/ChapterCard.js b/src/components/ChapterCard.js index 0e459c44..70abe561 100644 --- a/src/components/ChapterCard.js +++ b/src/components/ChapterCard.js @@ -19,7 +19,7 @@ const ChapterCard = ({ flexDirection: "row", justifyContent: "space-between", alignItems: "center", - borderTopColor: "rgba(255,255,255,.12)", + // borderTopColor: "rgba(255,255,255,.12)", borderTopWidth: 1, }} onPress={() => diff --git a/src/components/NovelInfoHeader.js b/src/components/NovelInfoHeader.js index 1a63b927..d7957da2 100644 --- a/src/components/NovelInfoHeader.js +++ b/src/components/NovelInfoHeader.js @@ -151,19 +151,14 @@ const NovelInfoHeader = ({ borderColor: "rgba(255,255,255,0.121)", borderWidth: 1, justifyContent: "center", - height: 32, + height: 30, alignItems: "center", marginLeft: 15, + paddingHorizontal: 3, + }, + libraryStatus === 1 && { + backgroundColor: "rgba(41,121,255,0.38)", }, - libraryStatus === 1 - ? { - width: 120, - backgroundColor: - "rgba(41,121,255,0.38)", - } - : { - width: 150, - }, ]} textStyle={{ fontWeight: "bold", @@ -174,6 +169,7 @@ const NovelInfoHeader = ({ ? "In Library" : "Add to library"} + WebBrowser.openBrowserAsync( @@ -200,7 +196,7 @@ const NovelInfoHeader = ({ style={{ paddingHorizontal: 15, marginBottom: 10, - marginTop: 5, + // marginTop: 5, }} > setMore(!more)} > - {more ? "Less" : "More"} + {more ? "Less " : "More "} )} - {(more || novel.novelSummary === "") && ( - item} - renderItem={renderGenreChip} - /> - )} + + item} + renderItem={renderGenreChip} + />