Skip to content

Commit

Permalink
chore(react): improve drag source styles
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Aug 25, 2021
1 parent 0768878 commit 639a78f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react/src/widgets/DragSourceWidget/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ export const DragSourceWidget: React.FC<IDragSourceWidgetProps> = observer(
<div className={prefix + '-content'}>
{sources.map(isFn(props.children) ? props.children : renderNode)}
{remainItems ? (
<div className={prefix + '-item-remain'}></div>
<div
className={prefix + '-item-remain'}
style={{ gridColumnStart: `span ${3 - remainItems}` }}
></div>
) : null}
</div>
</div>
Expand Down

0 comments on commit 639a78f

Please sign in to comment.