Skip to content

Commit

Permalink
Update ssr-testing app
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Moroz committed Jun 10, 2024
1 parent 667bd78 commit 2c8e187
Showing 1 changed file with 39 additions and 25 deletions.
64 changes: 39 additions & 25 deletions ssr-testing/app/scroll-area/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,17 @@ import {

export default function Page() {
return (
<ScrollArea style={{ width: '400px', height: '400px' }}>
<Scrollbar orientation="vertical">
<ScrollAreaThumb />
</Scrollbar>
<div>
<ScrollArea>
<Scrollbar orientation="vertical">
<ScrollAreaThumb />
</Scrollbar>

<Scrollbar orientation="horizontal">
<ScrollAreaThumb />
</Scrollbar>
<Scrollbar orientation="horizontal">
<ScrollAreaThumb />
</Scrollbar>

<ScrollAreaViewport>
<div style={{ width: '2000px', padding: 20 }}>
<LongContent />
<LongContent />
<LongContent />
<LongContent />
<LongContent />
<LongContent />
<LongContent />
</div>
</ScrollAreaViewport>

<ScrollAreaViewport asChild>
<section style={{ border: '1px solid' }}>
<ScrollAreaViewport style={{ width: '400px', height: '400px' }}>
<div style={{ width: '2000px', padding: 20 }}>
<LongContent />
<LongContent />
Expand All @@ -41,11 +29,37 @@ export default function Page() {
<LongContent />
<LongContent />
</div>
</section>
</ScrollAreaViewport>
</ScrollAreaViewport>

<ScrollAreaCorner />
</ScrollArea>

<ScrollArea>
<Scrollbar orientation="vertical">
<ScrollAreaThumb />
</Scrollbar>

<Scrollbar orientation="horizontal">
<ScrollAreaThumb />
</Scrollbar>

<ScrollAreaViewport style={{ width: '400px', height: '400px' }} asChild>
<section style={{ border: '1px solid' }}>
<div style={{ width: '2000px', padding: 20 }}>
<LongContent />
<LongContent />
<LongContent />
<LongContent />
<LongContent />
<LongContent />
<LongContent />
</div>
</section>
</ScrollAreaViewport>

<ScrollAreaCorner />
</ScrollArea>
<ScrollAreaCorner />
</ScrollArea>
</div>
);
}

Expand Down

0 comments on commit 2c8e187

Please sign in to comment.