From 56b973f02e4cb3a6ba127bb2f3113ffeac20f892 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Thu, 25 Jan 2024 17:54:11 +0100 Subject: [PATCH] Add highlights to nested content content-blocks Also refactor the ContentListBlock component --- .../content-blocks/ContentComponent.vue | 1 + .../content-blocks/ContentListBlock.vue | 55 ++++++++++--------- 2 files changed, 31 insertions(+), 25 deletions(-) diff --git a/client/src/components/content-blocks/ContentComponent.vue b/client/src/components/content-blocks/ContentComponent.vue index 411b3903..553f967b 100644 --- a/client/src/components/content-blocks/ContentComponent.vue +++ b/client/src/components/content-blocks/ContentComponent.vue @@ -33,6 +33,7 @@ import Mark from 'mark.js'; import highlightSidebar from '@/helpers/highlight-sidebar'; export interface Props { + // todo: use useful types here component: any; parent: any; highlights: HighlightNode[]; diff --git a/client/src/components/content-blocks/ContentListBlock.vue b/client/src/components/content-blocks/ContentListBlock.vue index f3a15962..d141f55a 100644 --- a/client/src/components/content-blocks/ContentListBlock.vue +++ b/client/src/components/content-blocks/ContentListBlock.vue @@ -9,33 +9,38 @@ - + +