feat(SampleListSection): add LayoutSwitch to the header

This commit is contained in:
Ilia Mashkov
2026-02-27 19:08:34 +03:00
parent 8fbd6f5935
commit 85b14cd89b

View File

@@ -11,6 +11,7 @@ import {
type Snippet,
getContext,
} from 'svelte';
import LayoutSwitch from '../LayoutSwitch/LayoutSwitch.svelte';
import SampleList from '../SampleList/SampleList.svelte';
const responsive = getContext<ResponsiveManager>('responsive');
@@ -25,6 +26,10 @@ const responsive = getContext<ResponsiveManager>('responsive');
headerTitle="visual_output"
headerSubtitle="render_engine:"
>
{#snippet headerContent()}
<LayoutSwitch />
{/snippet}
{#snippet content({ className })}
<div class={cn(className, !responsive.isDesktopLarge && 'col-start-0 col-span-2')}>
<SampleList />