From 87d3f09f12fb2bd4567e8e5332e3552cdcb0a795 Mon Sep 17 00:00:00 2001 From: Maija <51128208+Maijjay@users.noreply.github.com> Date: Tue, 21 Nov 2023 13:15:37 +0200 Subject: [PATCH] Hide In this page -sidebar from the browser search (#1202) Co-authored-by: Maija Y --- .../src/components/HeadingsNavigation.tsx | 141 +++++++++--------- 1 file changed, 72 insertions(+), 69 deletions(-) diff --git a/services/course-material/src/components/HeadingsNavigation.tsx b/services/course-material/src/components/HeadingsNavigation.tsx index cc2be673d3c6..7d489b35781b 100644 --- a/services/course-material/src/components/HeadingsNavigation.tsx +++ b/services/course-material/src/components/HeadingsNavigation.tsx @@ -238,82 +238,85 @@ const HeadingsNavigation: React.FC -

- {t("in-this-page")} -

- - + {!realCollapsed && (
- {headings && - headings.map(({ headingsNavigationIndex, title, element }) => { - return ( - - ) - })} + `} + > +
{title}
+ + + ) + })} +
+
- + )}