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