From ccb3c98fe8897c581c798a1c967eb12aabc01034 Mon Sep 17 00:00:00 2001 From: Marco Crapts Date: Thu, 1 Jun 2023 21:31:18 +0200 Subject: [PATCH] fix iphone padding --- src/App.vue | 17 ++++++++++++++--- src/components/TopBar.vue | 22 +++++++++++++++++----- src/style.scss | 7 +++++++ 3 files changed, 38 insertions(+), 8 deletions(-) diff --git a/src/App.vue b/src/App.vue index 3ee4fa2..f940768 100644 --- a/src/App.vue +++ b/src/App.vue @@ -51,24 +51,35 @@ const submitPassphrase = (close: () => void) => { if (passphraseValid.value) close() } -const loading = computed(() => notes.value.length === 0 || passphraseRequired.value || !activeNotesSource.value) +const loading = computed( + () => notes.value.length === 0 || passphraseRequired.value || !activeNotesSource.value +) provide('loading', loading) + +const topBarHeight = 52 +const topBarHeightWithSafeArea = computed(() => `calc(${topBarHeight}px + var(--safe-area-top))`)