@@ -4,7 +4,11 @@ import { SortableList, type SortableItemProps } from './SortableList'
44const itemStyle = {
55 padding : '20px 10px' ,
66 background : '#fff' ,
7- border : '2px solid #000'
7+ border : '2px solid' ,
8+ borderTopColor : '#000' ,
9+ borderLeftColor : '#000' ,
10+ borderRightColor : '#000' ,
11+ borderBottomColor : '#000'
812}
913
1014interface Item {
@@ -17,10 +21,10 @@ function ItemHorizontalComponent (props: SortableItemProps<Item>): React.ReactEl
1721 return (
1822 < div
1923 style = { {
24+ ...itemStyle ,
2025 opacity : isDragged ? '0.3' : undefined ,
21- borderLeftColor : isDragItemInsertBefore ? 'yellow' : undefined ,
22- borderRightColor : isDragItemInsertAfter ? 'yellow' : undefined ,
23- ...itemStyle
26+ borderLeftColor : isDragItemInsertBefore ? 'yellow' : '#000' ,
27+ borderRightColor : isDragItemInsertAfter ? 'yellow' : '#000' ,
2428 } } >
2529 { item . title }
2630 </ div >
@@ -33,10 +37,10 @@ function ItemVerticalComponent (props: SortableItemProps<Item>): React.ReactElem
3337 return (
3438 < div
3539 style = { {
40+ ...itemStyle ,
3641 opacity : isDragged ? '0.3' : undefined ,
37- borderTopColor : isDragItemInsertBefore ? 'yellow' : undefined ,
38- borderBottomColor : isDragItemInsertAfter ? 'yellow' : undefined ,
39- ...itemStyle
42+ borderTopColor : isDragItemInsertBefore ? 'yellow' : '#000' ,
43+ borderBottomColor : isDragItemInsertAfter ? 'yellow' : '#000'
4044 } } >
4145 { item . title }
4246 </ div >
0 commit comments