Skip to content

Commit 639a78f

Browse files
committed
chore(react): improve drag source styles
1 parent 0768878 commit 639a78f

File tree

1 file changed

+4
-1
lines changed
  • packages/react/src/widgets/DragSourceWidget

1 file changed

+4
-1
lines changed

packages/react/src/widgets/DragSourceWidget/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ export const DragSourceWidget: React.FC<IDragSourceWidgetProps> = observer(
7373
<div className={prefix + '-content'}>
7474
{sources.map(isFn(props.children) ? props.children : renderNode)}
7575
{remainItems ? (
76-
<div className={prefix + '-item-remain'}></div>
76+
<div
77+
className={prefix + '-item-remain'}
78+
style={{ gridColumnStart: `span ${3 - remainItems}` }}
79+
></div>
7780
) : null}
7881
</div>
7982
</div>

0 commit comments

Comments
 (0)