diff options
author | Joris | 2017-04-05 20:21:07 +0200 |
---|---|---|
committer | Joris | 2017-04-05 20:21:14 +0200 |
commit | c9a3b1652b93b1577e98fefbcb8652be4d7237f9 (patch) | |
tree | 1420546f429c2d12e36833b5c9c810908946ab92 /src | |
parent | 439c18454d727f20cd7ac59bcace4dfbe0b3b5ed (diff) |
Fix book detail over books when going back two times in history from a book detail to another book detail
Diffstat (limited to 'src')
-rw-r--r-- | src/main/scala/reading/component/index/BookDetail.scala | 2 | ||||
-rw-r--r-- | src/main/scala/reading/component/index/style/BookDetail.scala | 1 |
2 files changed, 2 insertions, 1 deletions
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) ) |