From 7c3cd216bf542baa9a43f1cfa2b3024aa65e4040 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 9 May 2024 23:24:37 -0600 Subject: [PATCH] fix: Long words in table of contents should wrap, closes #6883 --- app/scenes/Document/components/Contents.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/scenes/Document/components/Contents.tsx b/app/scenes/Document/components/Contents.tsx index 242d38d32455..fa24ddccba2d 100644 --- a/app/scenes/Document/components/Contents.tsx +++ b/app/scenes/Document/components/Contents.tsx @@ -141,6 +141,7 @@ const ListItem = styled.li<{ level: number; active?: boolean }>` margin-bottom: 8px; padding-right: 2em; line-height: 1.3; + word-break: break-word; a { font-weight: ${(props) => (props.active ? "600" : "inherit")};