Fix: adjust li a bit
This commit is contained in:
parent
b0b1ed7e02
commit
37d7428001
|
@ -26,12 +26,14 @@ ol {
|
|||
li {
|
||||
position: relative;
|
||||
user-select: none;
|
||||
border: 1px solid;
|
||||
border: 1px solid silver;
|
||||
border-left: 0;
|
||||
padding: 0.3em 0;
|
||||
background: white;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis
|
||||
text-overflow: ellipsis;
|
||||
cursor: grab;
|
||||
}
|
||||
li:not(:first-child) {
|
||||
margin-top: -1px;
|
||||
|
@ -41,7 +43,6 @@ li:not(:first-child) {
|
|||
}
|
||||
.dragger {
|
||||
padding: 0.6em;
|
||||
cursor: grab;
|
||||
}
|
||||
.slip-reordering,
|
||||
.slip-reordering .dragger {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
ol.append(...list.map(l => l.el));
|
||||
ol.addEventListener('slip:beforeswipe', e => e.preventDefault());
|
||||
ol.addEventListener('slip:beforewait', e => {
|
||||
if (e.target.classList.contains('dragger')) {
|
||||
if (browser.windows) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user