From 37d74280019bec466612b7e0244fe262683e66c8 Mon Sep 17 00:00:00 2001 From: eight04 Date: Fri, 10 Dec 2021 20:41:13 +0800 Subject: [PATCH] Fix: adjust li a bit --- execution-order/execution-order.css | 7 ++++--- execution-order/execution-order.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/execution-order/execution-order.css b/execution-order/execution-order.css index a1a23b35..450f60ac 100644 --- a/execution-order/execution-order.css +++ b/execution-order/execution-order.css @@ -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 { diff --git a/execution-order/execution-order.js b/execution-order/execution-order.js index 70a8fc14..4ea5d12a 100644 --- a/execution-order/execution-order.js +++ b/execution-order/execution-order.js @@ -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(); } });