From c9a3b1652b93b1577e98fefbcb8652be4d7237f9 Mon Sep 17 00:00:00 2001 From: Joris Date: Wed, 5 Apr 2017 20:21:07 +0200 Subject: Fix book detail over books when going back two times in history from a book detail to another book detail --- src/main/scala/reading/component/index/BookDetail.scala | 2 +- src/main/scala/reading/component/index/style/BookDetail.scala | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/scala/reading/component/index/BookDetail.scala b/src/main/scala/reading/component/index/BookDetail.scala index 9752ac4..6d1c424 100644 --- a/src/main/scala/reading/component/index/BookDetail.scala +++ b/src/main/scala/reading/component/index/BookDetail.scala @@ -28,7 +28,7 @@ object BookDetail { val titleParts = if (book.parts > 1) s", ${book.parts} volumes" else "" val grades = book.programs.map(Grade.from(_)).distinct.sorted - AnimateMethod.fadeIn(componentId) + AnimateMethod.fadeIn(componentId, AnimateMethod.fadeOut(Books.componentId)) div( BookStyle.render, diff --git a/src/main/scala/reading/component/index/style/BookDetail.scala b/src/main/scala/reading/component/index/style/BookDetail.scala index ca0118b..ac7aa58 100644 --- a/src/main/scala/reading/component/index/style/BookDetail.scala +++ b/src/main/scala/reading/component/index/style/BookDetail.scala @@ -17,6 +17,7 @@ object BookDetail extends StyleSheet.Inline { overflowY.scroll, Media.desktop(width :=! "calc(100% - 280px)"), Media.mobile(width(100.%%)), + backgroundColor(C.white.value), opacity(0) ) -- cgit v1.2.3