Skip to content

Commit

Permalink
feat(stretchable-layout): changed the min/max of resizable to 30%/70%
Browse files Browse the repository at this point in the history
  • Loading branch information
jerensl committed Aug 6, 2024
1 parent 97c5b94 commit a382171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modelina-website/src/components/playground/Resizable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ function Resizable({ leftComponent, rightComponent }: ResizableComponentProps) {
drag='x'
dragElastic={0}
dragConstraints={{
left: containerWidth === null ? DefaultWidth * .2 : containerWidth * .2,
right: containerWidth === null ? DefaultWidth * .8 : containerWidth * .8
left: containerWidth === null ? DefaultWidth * .3 : containerWidth * .3,
right: containerWidth === null ? DefaultWidth * .7 : containerWidth * .7
}}
/>
<motion.article className='h-full overflow-y-hidden'>
Expand Down

0 comments on commit a382171

Please sign in to comment.