From 8ce1a32615aa57c2a38da4062946ba4657d79825 Mon Sep 17 00:00:00 2001 From: tamaina Date: Fri, 10 Feb 2023 18:36:48 +0000 Subject: [PATCH] clean up --- packages/frontend/src/components/global/MkPageHeader.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/components/global/MkPageHeader.vue b/packages/frontend/src/components/global/MkPageHeader.vue index 05d80b03bf..3f1bf3df1a 100644 --- a/packages/frontend/src/components/global/MkPageHeader.vue +++ b/packages/frontend/src/components/global/MkPageHeader.vue @@ -138,7 +138,7 @@ let ro2: ResizeObserver | null; function renderTab() { const tabEl = props.tab ? tabRefs[props.tab] : undefined; - if (tabEl && tabEl.parentElement && tabHighlightEl && tabHighlightEl.parentElement) { + if (tabEl && tabHighlightEl && tabHighlightEl.parentElement) { // offsetWidth や offsetLeft は少数を丸めてしまうため getBoundingClientRect を使う必要がある // https://developer.mozilla.org/ja/docs/Web/API/HTMLElement/offsetWidth#%E5%80%A4 const parentRect = tabHighlightEl.parentElement.getBoundingClientRect();