Fix: adjust li a bit

This commit is contained in:
eight04 2021-12-10 20:41:13 +08:00
parent b0b1ed7e02
commit 37d7428001
2 changed files with 5 additions and 4 deletions

View File

@ -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 {

View File

@ -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();
}
});