aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala')
-rw-r--r--src/main/scala/reading/component/index/BookDetail.scala2
-rw-r--r--src/main/scala/reading/component/index/style/BookDetail.scala1
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)
)