From 7eeedd0eeb09faab9fd167cfe50acaf9dcae1a25 Mon Sep 17 00:00:00 2001 From: Marco Crapts Date: Sun, 21 May 2023 13:28:02 +0200 Subject: [PATCH] fix jumpy safari --- index.html | 2 +- src/App.vue | 10 +++++++++- src/components/Search/SearchBar.vue | 5 +++++ src/components/TopBar.vue | 28 +++++++++++++++++++++------- src/style.scss | 7 +++++-- 5 files changed, 41 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index 657549d..3f4f696 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + Contexted diff --git a/src/App.vue b/src/App.vue index 872c3ff..2ccbee7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,6 +13,14 @@ const Mindmap = defineAsyncComponent(() => import('@/components/ViewModes/Mindma const firebaseAuthUI = firebaseui.auth.AuthUI.getInstance() || new firebaseui.auth.AuthUI(firebase.auth()) provide('firebaseAuthUI', firebaseAuthUI) + +// const setMinHeight = () => { +// const app = document.querySelector('#app') +// app?.setAttribute('style', `min-height: ${window.innerHeight}px`) +// } +// const handleResize = useDebounceFn(() => setMinHeight(), 100, { maxWait: 100 }) +// window.addEventListener('resize', handleResize) +// setMinHeight()