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()
@@ -20,7 +28,7 @@ provide('firebaseAuthUI', firebaseAuthUI)
:side-bar-collapsed="sideBarCollapsed"
@toggle-side-bar="sideBarCollapsed = !sideBarCollapsed"
/>
-
+
import { notes, findNotes, setActiveNote } from '@/composables/useNotes'
+const emit = defineEmits<{
+ active: [active: boolean]
+}>()
+
const active = ref(false)
watch(active, () => {
if (!active.value) {
query.value = ''
activeResult.value = undefined
}
+ emit('active', active.value)
})
const query = ref('')
diff --git a/src/components/TopBar.vue b/src/components/TopBar.vue
index 2f36e0f..b8d65d2 100644
--- a/src/components/TopBar.vue
+++ b/src/components/TopBar.vue
@@ -11,6 +11,8 @@ const emit = defineEmits<{
toggleSideBar: []
}>()
+const searchActive = ref(false)
+
const signOut = async (close: () => Promise) => {
await firebaseSignOut()
close()
@@ -20,9 +22,15 @@ const authUI: any = inject('firebaseAuthUI')
const authModalInitialStateOpen = ref(authUI.isPendingRedirect())
-
+
-
+
-
+ (searchActive = active)" />
-
+
Sign in
@@ -55,7 +63,7 @@ const authModalInitialStateOpen = ref(authUI.isPendingRedirect())
-
+
@@ -88,7 +96,7 @@ const authModalInitialStateOpen = ref(authUI.isPendingRedirect())
-
diff --git a/src/style.scss b/src/style.scss
index 302f892..5a96d44 100644
--- a/src/style.scss
+++ b/src/style.scss
@@ -5,11 +5,14 @@
@import '@fontsource/source-sans-pro/300';
html {
- height: 100%;
+ height: fill-available;
+ height: -webkit-fill-available;
}
body {
- min-height: 100%;
+ min-height: 100vh;
+ min-height: fill-available;
+ min-height: -webkit-fill-available;
font-family: 'Source Sans Pro', sans-serif;
overflow-y: scroll;
@apply flex flex-col bg-gray-100;