Skip to content

Commit

Permalink
Fix sort helper height in shrinkable storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
nervetattoo committed Nov 10, 2016
1 parent fc1b77e commit f3799d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/.stories/Storybook.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@
}
}

.shrinkedHelper {
height: 20px !important;
}

:global {
body {
Expand Down
6 changes: 2 additions & 4 deletions src/.stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,10 @@ storiesOf('Basic Configuration', module)
);
})
.add('Elements that shrink', () => {
const getHelperDimensions = ({index, collection, node}) => {
return { height: 20, width: node.offsetWidth }
}
const getHelperDimensions = ({node}) => ({ height: 20, width: node.offsetWidth })
return (
<div className={style.root}>
<ListWrapper component={ShrinkingSortableList} items={getItems(50)} helperClass={style.stylizedHelper} getHelperDimensions={getHelperDimensions} />
<ListWrapper component={ShrinkingSortableList} items={getItems(50)} helperClass={style.shrinkedHelper} getHelperDimensions={getHelperDimensions} />
</div>
);
})
Expand Down

0 comments on commit f3799d7

Please sign in to comment.