From 7113abb6c6268ecf7e918096d016074ebd1e9145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E6=B5=AA=E6=B5=AA?= <675483520@qq.com> Date: Thu, 22 Jun 2017 15:15:03 +0800 Subject: [PATCH] new patch online style update --- src/components/Favorite/Favorite.css | 2 +- src/components/Favorite/Favorite.jsx | 2 +- src/components/Random/Random.css | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Favorite/Favorite.css b/src/components/Favorite/Favorite.css index 10465f0..a4ddf7b 100644 --- a/src/components/Favorite/Favorite.css +++ b/src/components/Favorite/Favorite.css @@ -29,7 +29,7 @@ } .scrollBox { - height: 48.8% !important; + height: 48.5% !important; margin-bottom: 1rem; & > div { diff --git a/src/components/Favorite/Favorite.jsx b/src/components/Favorite/Favorite.jsx index b1f502a..0ca6c44 100644 --- a/src/components/Favorite/Favorite.jsx +++ b/src/components/Favorite/Favorite.jsx @@ -54,7 +54,7 @@ class Favorite extends React.Component { }) } - let _html = favoriteHtml.length > 0 + let _html = false ? favoriteHtml :
diff --git a/src/components/Random/Random.css b/src/components/Random/Random.css index 5fd7cc1..0db3bb6 100644 --- a/src/components/Random/Random.css +++ b/src/components/Random/Random.css @@ -1,5 +1,7 @@ .scrollBox { + height: calc(100% - 4.5rem) !important; + & > div { &:last-child div { background: #000 !important; @@ -8,7 +10,7 @@ } .favorite { - height: 48%; + height: 50%; overflow: hidden; & h4 span {