Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Commit 9b195e9

Browse files
skrothalexreardon
authored andcommitted
Update README.md to match WebpackBin example (#168)
The `getItemStyle` in README.md had a bug when I tried it but the one in the WebpackBin code worked perfectly. This commit brings the change in the WebpackBin example to README.md.
1 parent 08eae44 commit 9b195e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const getItemStyle = (draggableStyle, isDragging) => ({
7575
// some basic styles to make the items look a bit nicer
7676
userSelect: 'none',
7777
padding: grid * 2,
78-
marginBottom: grid,
78+
margin: `0 0 ${grid}px 0`,
7979

8080
// change background colour if dragging
8181
background: isDragging ? 'lightgreen' : 'grey',

0 commit comments

Comments
 (0)