From 61eec96090a82bd8e6f81014f5f36127b5740129 Mon Sep 17 00:00:00 2001 From: bwang Date: Wed, 27 Apr 2022 14:22:53 -0500 Subject: [PATCH] Add word-break CSS to TOC links Bug: T306913 Change-Id: I95420c837a779a85e55c20c7a9d1ae74b632c6cf --- .../components/TableOfContents.less | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/resources/skins.vector.styles/components/TableOfContents.less b/resources/skins.vector.styles/components/TableOfContents.less index ee40450d..d8124b4f 100644 --- a/resources/skins.vector.styles/components/TableOfContents.less +++ b/resources/skins.vector.styles/components/TableOfContents.less @@ -26,10 +26,14 @@ border: 0; } - .sidebar-toc-link > * { - // Prevent click events on the link's contents so that we can use event - // delegation and have the target be the anchor element instead. - pointer-events: none; + .sidebar-toc-link { + word-break: break-word; + + > * { + // Prevent click events on the link's contents so that we can use event + // delegation and have the target be the anchor element instead. + pointer-events: none; + } } .sidebar-toc-numb {