From a67ac58d5ed173f039be67d491db8d4f2a785884 Mon Sep 17 00:00:00 2001
From: buttercat1791 <mjjurkoic@gmail.com>
Date: Thu, 22 Aug 2024 09:30:47 -0500
Subject: Filter for valid NKBIP-01 events

---
 src/routes/+layout.svelte | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

(limited to 'src/routes/+layout.svelte')

diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index dddce98..d8c30ea 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -1,18 +1,17 @@
 <script>
   import "../app.css";
-  // import Login from '$lib/login.svelte';
-  import { tabs, userPublickey } from "$lib/state";
-  // import {ndk} from '$lib/ndk';
-  import { browser } from "$app/environment";
-  import { NDKNip07Signer } from "@nostr-dev-kit/ndk";
-  import { onMount } from "svelte";
   import Navigation from "$lib/components/Navigation.svelte";
+    import { onMount } from "svelte";
+
+  // Compute viewport height.
+  $: displayHeight = window.innerHeight;
+
+  onMount(() => {
+    document.body.style.height = `${displayHeight}px`;
+  });
 </script>
 
-<div class='leather h-full w-full flex flex-col items-center'>
+<div class={'leather h-full w-full flex flex-col items-center'}>
   <Navigation class='sticky top-0' />
   <slot />
 </div>
-
-<style>
-</style>
-- 
cgit 

