Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,26 @@
import type { LayoutData } from './$types';

import { enhance } from '$app/forms';
import { onNavigate } from '$app/navigation';
import { page } from '$app/stores';

export let data: LayoutData;

let assistantButton: HTMLButtonElement | null = null;

onNavigate((navigation) => {
if (!document.startViewTransition) {
return Promise.resolve();
}

return new Promise((resolve) => {
document.startViewTransition(async () => {
resolve();

await navigation.complete;
});
});
});
</script>

<svelte:head>
Expand All @@ -41,7 +56,7 @@
}}
/>

<header class="bg-white border-gray-200 px-4 lg:px-6 py-2.5">
<header class="bg-white border-gray-200 px-4 lg:px-6 py-2.5" style="view-transition-name: header;">
<div class="flex flex-wrap justify-between items-center mx-auto max-w-screen-xl">
<a
href="/"
Expand Down