Update packages/client/src/components/global/sticky-container.vue

Co-authored-by: Johann150 <johann.galle@protonmail.com>
This commit is contained in:
tamaina 2022-05-08 20:13:41 +09:00 committed by GitHub
parent c2c7a06729
commit 1756d74039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ const props = withDefaults(defineProps<{
const rootEl = $ref<HTMLElement>();
const bodyEl = $ref<HTMLElement>();
let headerHeight: string | undefined = $ref();
let headerHeight = $ref<string | undefined>();
const calc = () => {
const currentStickyTop = getComputedStyle(rootEl).getPropertyValue('--stickyTop') || '0px';