fix: widget order ui bugs

This commit is contained in:
David Ralph
2021-04-01 18:58:40 +01:00
parent 0575d5d565
commit ceb68012d5
3 changed files with 3 additions and 2 deletions

View File

@@ -150,4 +150,5 @@ input[type=color]::-moz-color-swatch {
.sortableitem {
width: auto !important;
color: var(--modal-text) !important;
cursor: move;
}

View File

@@ -51,7 +51,7 @@ export default class OrderSettings extends React.PureComponent {
<>
<h2>Order</h2>
<span className='modalLink' onClick={this.reset}>Reset</span>
<SortableContainer onSortEnd={this.onSortEnd}>
<SortableContainer onSortEnd={this.onSortEnd} lockAxis='y' lockToContainerEdges disableAutoscroll>
{this.state.items.map((value, index) => (
<SortableItem key={`item-${value}`} index={index} value={value} />
))}