Skip to content

Commit

Permalink
docs: fix layout
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-ub committed Nov 7, 2024
1 parent 603080b commit d3f8c4c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/src/components/component-preview/ComponentPreview.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import StyleSwitcher from '../StyleSwitcher.astro'
import { Tabs, TabsContent, TabsList, TabsTrigger } from '../tabs'
import { ComponentPeviewComponent } from './component-preview'
import ComponentSource from './ComponentSource.astro'
export interface Props {
name: string
Expand Down Expand Up @@ -100,11 +99,13 @@ const components = await Promise.all(

<TabsContent>
<div class="flex flex-col space-y-4">
<div class="w-full rounded-md [&_pre]:my-0 [&_pre]:max-h-[350px] [&_pre]:overflow-auto">
<ComponentSource>
<div class="w-full rounded-md [&_pre]:my-0 [&_pre]:max-h-[410px] [&_pre]:overflow-auto">
<template x-if="$store.style === 'new-york'">
<slot name="new-york" slot="new-york"> <p>Not found</p> </slot>
</template>
<template x-if="$store.style === 'default'">
<slot name="default" slot="default"> <p>Not found</p> </slot>
</ComponentSource>
</template>
</div>
</div>
</TabsContent>
Expand Down

0 comments on commit d3f8c4c

Please sign in to comment.