From 2bdabc8fe07964ccc50d372c629269d387be834a Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 12 Oct 2022 19:14:11 +0100 Subject: [PATCH] fix: toc padding in mobile --- src/components/site/PostToc.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/site/PostToc.tsx b/src/components/site/PostToc.tsx index 556429bd..8e735180 100644 --- a/src/components/site/PostToc.tsx +++ b/src/components/site/PostToc.tsx @@ -110,6 +110,7 @@ export const PostToc: React.FC<{ className="xlog-post-toc absolute left-full pl-10 h-full top-0" style={{ maxWidth: maxWidth > 40 ? maxWidth : 0, + display: maxWidth > 40 ? "block" : "none", }} ref={containerRef} >