From c88c18fdf4b083b6051a535f636d77e737f2cf07 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sun, 16 Feb 2025 20:54:16 +0900 Subject: [PATCH] test --- .../src/components/MkSearchMarker.vue | 4 ++- .../src/pages/settings/mute-block.vue | 36 ++++++++++++++----- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/packages/frontend/src/components/MkSearchMarker.vue b/packages/frontend/src/components/MkSearchMarker.vue index 87049dbbfb..25734d7880 100644 --- a/packages/frontend/src/components/MkSearchMarker.vue +++ b/packages/frontend/src/components/MkSearchMarker.vue @@ -14,9 +14,11 @@ import { onMounted, onUnmounted, ref, shallowRef } from 'vue'; const props = defineProps<{ markerId: string; + children?: string[]; }>(); -const highlighted = window.location.hash.slice(1) === props.markerId; +const hash = window.location.hash.slice(1); +const highlighted = hash === props.markerId || (props.children && props.children.includes(hash));