diff --git a/src/components/Document/DocumentLocalSearch/DocumentLocalSearch.vue b/src/components/Document/DocumentLocalSearch/DocumentLocalSearch.vue index 5624e78178..c5afaab4ea 100644 --- a/src/components/Document/DocumentLocalSearch/DocumentLocalSearch.vue +++ b/src/components/Document/DocumentLocalSearch/DocumentLocalSearch.vue @@ -39,7 +39,7 @@ const disabledNext = computed(() => props.activeIndex === props.occurrences || p @next="$emit('update:activeIndex', activeIndex + 1)" /> { return t('documentLocalSearchOccurrences.label', { activeIndex, occurrences }) }) -const show = computed(() => { - return props.occurrences !== null -}) - const style = computed(() => { return { maxWidth: props.maxWidth } }) @@ -37,14 +36,20 @@ const style = computed(() => { const key = computed(() => { return `${props.activeIndex}-${props.occurrences}` }) + +const classList = computed(() => { + return { + 'document-local-search-occurrences--hidden': props.hidden + } +})