aboutsummaryrefslogtreecommitdiff
path: root/src/routes/+layout.svelte
diff options
context:
space:
mode:
authorLibravatar buttercat1791 <mjjurkoic@gmail.com>2024-08-22 09:30:47 -0500
committerLibravatar limina1 <liminal@duck.com>2024-08-27 08:22:01 -0400
commita67ac58d5ed173f039be67d491db8d4f2a785884 (patch)
tree3bf5a9ef6887aae76d900ffbde90a96bb3c42ddc /src/routes/+layout.svelte
parentf0567c160e2b2b3448fbe41a1eabeb953dd3829f (diff)
Filter for valid NKBIP-01 events
Diffstat (limited to 'src/routes/+layout.svelte')
-rw-r--r--src/routes/+layout.svelte19
1 files changed, 9 insertions, 10 deletions
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>