summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/global/MkStickyContainer.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-03-23 21:23:52 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-03-23 21:23:52 +0900
commit0471e457fe0a62b778219b132b44d71e446a2fe4 (patch)
tree7ded91d0f887a3be803329313a3647aa1a61b6d8 /packages/frontend/src/components/global/MkStickyContainer.vue
parentUpdate CHANGELOG.md (diff)
downloadmisskey-0471e457fe0a62b778219b132b44d71e446a2fe4.tar.gz
misskey-0471e457fe0a62b778219b132b44d71e446a2fe4.tar.bz2
misskey-0471e457fe0a62b778219b132b44d71e446a2fe4.zip
fix(frontend): fix broken styles
Diffstat (limited to 'packages/frontend/src/components/global/MkStickyContainer.vue')
-rw-r--r--packages/frontend/src/components/global/MkStickyContainer.vue11
1 files changed, 5 insertions, 6 deletions
diff --git a/packages/frontend/src/components/global/MkStickyContainer.vue b/packages/frontend/src/components/global/MkStickyContainer.vue
index 7dda4b2f8a..05245716c2 100644
--- a/packages/frontend/src/components/global/MkStickyContainer.vue
+++ b/packages/frontend/src/components/global/MkStickyContainer.vue
@@ -23,8 +23,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<script lang="ts" setup>
import { onMounted, onUnmounted, provide, inject, ref, watch, useTemplateRef } from 'vue';
-import { CURRENT_STICKY_BOTTOM, CURRENT_STICKY_TOP } from '@@/js/const.js';
-import type { Ref } from 'vue';
+import { DI } from '@/di.js';
const rootEl = useTemplateRef('rootEl');
const headerEl = useTemplateRef('headerEl');
@@ -32,13 +31,13 @@ const footerEl = useTemplateRef('footerEl');
const headerHeight = ref<string | undefined>();
const childStickyTop = ref(0);
-const parentStickyTop = inject<Ref<number>>(CURRENT_STICKY_TOP, ref(0));
-provide(CURRENT_STICKY_TOP, childStickyTop);
+const parentStickyTop = inject(DI.currentStickyTop, ref(0));
+provide(DI.currentStickyTop, childStickyTop);
const footerHeight = ref<string | undefined>();
const childStickyBottom = ref(0);
-const parentStickyBottom = inject<Ref<number>>(CURRENT_STICKY_BOTTOM, ref(0));
-provide(CURRENT_STICKY_BOTTOM, childStickyBottom);
+const parentStickyBottom = inject(DI.currentStickyBottom, ref(0));
+provide(DI.currentStickyBottom, childStickyBottom);
const calc = () => {
// コンポーネントが表示されてないけどKeepAliveで残ってる場合などは null になる