From 6b438e346712af7485ae76d0c1815f281c847529 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 13 Jan 2023 22:22:31 -0500 Subject: [PATCH] fix: Background on TOC does not transition smoothly on theme change --- app/scenes/Document/components/Contents.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/scenes/Document/components/Contents.tsx b/app/scenes/Document/components/Contents.tsx index d3e43c33c..a35d6d9ce 100644 --- a/app/scenes/Document/components/Contents.tsx +++ b/app/scenes/Document/components/Contents.tsx @@ -102,6 +102,8 @@ const Sticky = styled.div` max-height: calc(100vh - 80px); background: ${(props) => props.theme.background}; + transition: ${(props) => props.theme.backgroundTransition}; + margin-top: 72px; margin-right: 52px; min-width: 204px;