Skip to content

Commit 76337a3

Browse files
committed
Improve display of Search with SSR
1 parent 4a0cbea commit 76337a3

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

docs/src/routes/docs/search/Search.svelte

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script lang="ts">
22
import { cls } from '@layerstack/tailwind';
3-
import { MediaQueryPresets } from '@layerstack/svelte-state';
43
import { goto } from '$app/navigation';
54
import type { SearchEntry } from './searchContent';
65
import { Button, Dialog, Kbd, MenuItem, SelectField, type MenuOption } from 'svelte-ux';
@@ -25,8 +24,6 @@
2524
heading: LucideHash
2625
};
2726
28-
const { smScreen } = new MediaQueryPresets();
29-
3027
type SearchOption = MenuOption<string> & { result: SearchEntry };
3128
3229
let open = $state(false);
@@ -190,7 +187,6 @@
190187
{#if !hideInput}
191188
<Button
192189
icon={LucideSearch}
193-
iconOnly={!smScreen.current}
194190
onclick={() => (open = true)}
195191
class="sm:border sm:bg-surface-content/5 sm:hover:bg-surface-content/10 rounded-full sm:w-56 justify-start"
196192
>

0 commit comments

Comments
 (0)