Skip to content

Commit a20f37a

Browse files
committed
feat: change demo layout
1 parent 67d5b7b commit a20f37a

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

playground/src/app/(demo)/layout.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,15 @@ function DemoLayout({ children }: { children: React.ReactNode }) {
4343
<>
4444
<DemoTabs items={componentTabs} />
4545

46-
<ScrollArea className="h-full">
47-
<div className="p-[18px]">
48-
<div className="mb-8 border border-gray-200 rounded-xl bg-white p-6 shadow-lg transition-all dark:border-neutral-700 dark:bg-neutral-800 hover:shadow-xl">
49-
<h3 className="mb-4 border-b border-gray-200 pb-2 text-xl text-gray-800 font-bold dark:border-neutral-700 dark:text-gray-100">
50-
Demo <DemoTitle />
51-
</h3>
52-
53-
{children}
54-
</div>
46+
<div className="h-full p-[18px]">
47+
<div className="mb-8 h-full border border-gray-200 rounded-xl bg-white p-6 shadow-lg transition-all dark:border-neutral-700 dark:bg-neutral-800 hover:shadow-xl">
48+
<h3 className="mb-4 border-b border-gray-200 pb-2 text-xl text-gray-800 font-bold dark:border-neutral-700 dark:text-gray-100">
49+
Demo <DemoTitle />
50+
</h3>
51+
52+
<ScrollArea className="h-full pb-20">{children}</ScrollArea>
5553
</div>
56-
</ScrollArea>
54+
</div>
5755
</>
5856
);
5957
}

playground/src/app/(demo)/modules/DemoTabs.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ export default function DemoTabs({ items }: DemoTabsProps) {
1515

1616
return (
1717
<Tabs
18+
enableIndicator={false}
1819
items={items}
1920
value={currentTab}
21+
classNames={{
22+
list: 'flex-wrap justify-start'
23+
}}
2024
/>
2125
);
2226
}

playground/src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default async function RootLayout({
3232
<div className="h-full">
3333
<Card
3434
flexHeight
35-
className="h-full lt-sm:h-auto"
35+
className="h-full max-sm:h-auto"
3636
title="Soybean UI Components"
3737
>
3838
{children}

0 commit comments

Comments
 (0)