Skip to content

Commit

Permalink
Update stories
Browse files Browse the repository at this point in the history
  • Loading branch information
clauderic committed Jan 6, 2022
1 parent c50f0a9 commit 3fba297
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion stories/2 - Presets/Sortable/1-Vertical.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ export const RerenderBeforeSorting = () => {
{...props}
wrapperStyle={({isDragging}) => {
return {
height: isDragging ? undefined : 200,
transition: 'height 250ms ease',
height: isDragging ? 100 : 200,
};
}}
/>
Expand Down
4 changes: 3 additions & 1 deletion stories/components/Item/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ export const Item = React.memo(
style={
{
...wrapperStyle,
transition,
transition: [transition, wrapperStyle?.transition]
.filter(Boolean)
.join(', '),
'--translate-x': transform
? `${Math.round(transform.x)}px`
: undefined,
Expand Down

0 comments on commit 3fba297

Please sign in to comment.