From dafb8c2e2ba60236e4303e9ed018641cafc053f0 Mon Sep 17 00:00:00 2001 From: Travis Kohlbeck Date: Sat, 19 Sep 2020 12:13:38 -0400 Subject: [PATCH] Prevent ToC from repositioning with zoom --- src/components/PageContent/styles.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/PageContent/styles.tsx b/src/components/PageContent/styles.tsx index 7ea09eeb..f64d1729 100644 --- a/src/components/PageContent/styles.tsx +++ b/src/components/PageContent/styles.tsx @@ -3,8 +3,7 @@ import fontFamily from "../../design/typography" import { darken } from "polished" export const Content = styled.div` - flex: 1 1 calc(100% - 305px); - width: calc(100% - 305px); + flex: 1 1 calc(1vw - 305px); padding: 64px 0; @media screen and (max-width: 1200px) {