Skip to content

Commit a547fc9

Browse files
committed
more
1 parent 3d57efd commit a547fc9

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

apps/svelte.dev/src/routes/+layout.svelte

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@
3838

3939
<Shell nav_visible={$page.route.id !== '/(authed)/playground/[id]/embed'}>
4040
{#snippet top_nav()}
41-
<Nav title={data.nav_title} links={data.nav_links}>
42-
{#snippet search()}
43-
<Search />
44-
{/snippet}
45-
</Nav>
41+
<Nav title={data.nav_title} links={data.nav_links} />
4642
{/snippet}
4743

4844
{#snippet children()}
@@ -57,10 +53,3 @@
5753
{#if browser}
5854
<SearchBox />
5955
{/if}
60-
61-
<style>
62-
:global(html, body) {
63-
height: 100%;
64-
width: 100%;
65-
}
66-
</style>

packages/site-kit/src/lib/nav/Nav.svelte

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@ Top navigation bar for the application. It provides a slot for the left side, th
99
import ThemeToggle from '../components/ThemeToggle.svelte';
1010
import Menu from './Menu.svelte';
1111
import type { NavigationLink } from '../types';
12-
import type { Snippet } from 'svelte';
1312
import Dropdown from '../components/Dropdown.svelte';
1413
import { HoverMenu } from '../components';
14+
import Search from '../search/Search.svelte';
1515
1616
interface Props {
1717
home_title?: string;
1818
title: string | undefined;
1919
links: NavigationLink[];
20-
search?: Snippet;
2120
}
2221
23-
let { home_title = 'Homepage', title, links, search }: Props = $props();
22+
let { home_title = 'Homepage', title, links }: Props = $props();
2423
2524
let visible = $state(true);
2625
@@ -102,7 +101,7 @@ Top navigation bar for the application. It provides a slot for the left side, th
102101
</div>
103102

104103
<div class="menu">
105-
{@render search?.()}
104+
<Search />
106105

107106
<div class="external-links">
108107
<a href="/chat" data-icon="discord" aria-label="Discord Chat"></a>

0 commit comments

Comments
 (0)