From 3d206d2a0fba14490b9c1e01a8bc1f1a1ecdcf40 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Tue, 8 Apr 2025 08:43:56 +0900 Subject: [PATCH] =?UTF-8?q?enhance(frontend):=20=E8=A8=AD=E5=AE=9A?= =?UTF-8?q?=E6=A4=9C=E7=B4=A2=E6=99=82=E3=81=AB=E5=AF=BE=E8=B1=A1=E3=81=8C?= =?UTF-8?q?=E5=90=AB=E3=81=BE=E3=82=8C=E3=82=8BMkFolder=E3=82=92=E8=87=AA?= =?UTF-8?q?=E5=8B=95=E3=81=A7=E9=96=8B=E3=81=84=E3=81=A6=E3=81=8A=E3=81=8F?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/global/SearchMarker.vue | 5 +-- .../src/pages/settings/preferences.vue | 36 +++++++++---------- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/packages/frontend/src/components/global/SearchMarker.vue b/packages/frontend/src/components/global/SearchMarker.vue index 1cffbe28b0..ded1f9a28b 100644 --- a/packages/frontend/src/components/global/SearchMarker.vue +++ b/packages/frontend/src/components/global/SearchMarker.vue @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only @@ -39,9 +39,10 @@ const rootElMutationObserver = new MutationObserver(() => { const injectedSearchMarkerId = inject(DI.inAppSearchMarkerId, null); const searchMarkerId = computed(() => injectedSearchMarkerId?.value ?? window.location.hash.slice(1)); const highlighted = ref(props.markerId === searchMarkerId.value); +const isParentOfTarget = computed(() => props.children?.includes(searchMarkerId.value)); function checkChildren() { - if (props.children?.includes(searchMarkerId.value)) { + if (isParentOfTarget.value) { const el = window.document.querySelector(`[data-in-app-search-marker-id="${searchMarkerId.value}"]`); highlighted.value = el == null; } diff --git a/packages/frontend/src/pages/settings/preferences.vue b/packages/frontend/src/pages/settings/preferences.vue index 42a7b486ed..df54534b2c 100644 --- a/packages/frontend/src/pages/settings/preferences.vue +++ b/packages/frontend/src/pages/settings/preferences.vue @@ -11,8 +11,8 @@ SPDX-License-Identifier: AGPL-3.0-only
- - + + @@ -108,8 +108,8 @@ SPDX-License-Identifier: AGPL-3.0-only - - + + @@ -276,8 +276,8 @@ SPDX-License-Identifier: AGPL-3.0-only - - + + @@ -338,8 +338,8 @@ SPDX-License-Identifier: AGPL-3.0-only - - + + @@ -380,8 +380,8 @@ SPDX-License-Identifier: AGPL-3.0-only - - + + @@ -530,8 +530,8 @@ SPDX-License-Identifier: AGPL-3.0-only - - + + @@ -566,8 +566,8 @@ SPDX-License-Identifier: AGPL-3.0-only - - + + @@ -600,8 +600,8 @@ SPDX-License-Identifier: AGPL-3.0-only - - + +