From 1c9e56ce2e76deafbc9fbb962f3cde76cc9f287e Mon Sep 17 00:00:00 2001 From: advplyr Date: Mon, 18 Jul 2022 17:44:01 -0500 Subject: [PATCH] Fix:Libraries table to use draggable handle for items so they can be clicked and edited #839 --- client/assets/draggable.css | 13 ++++++++++--- client/components/tables/library/LibrariesTable.vue | 2 +- client/components/tables/library/LibraryItem.vue | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/client/assets/draggable.css b/client/assets/draggable.css index 48dca6b8..31271e67 100644 --- a/client/assets/draggable.css +++ b/client/assets/draggable.css @@ -1,34 +1,40 @@ .flip-list-move { transition: transform 0.5s; } + .no-move { transition: transform 0s; } + .ghost { opacity: 0.5; background-color: rgba(255, 255, 255, 0.25); } + .list-group { min-height: 30px; } -#librariesTable .item { - cursor: n-resize; -} + .drag-handle { cursor: n-resize; } + .list-group-item:not(.exclude) { cursor: n-resize; } + .list-group-item.exclude { cursor: not-allowed; } + .list-group-item:not(.ghost):not(.exclude):hover { background-color: rgba(0, 0, 0, 0.1); } + .list-group-item:nth-child(even):not(.ghost):not(.exclude) { background-color: rgba(0, 0, 0, 0.25); } + .list-group-item:nth-child(even):not(.ghost):not(.exclude):hover { background-color: rgba(0, 0, 0, 0.1); } @@ -36,6 +42,7 @@ .list-group-item.exclude:not(.ghost) { background-color: rgba(255, 0, 0, 0.25); } + .list-group-item.exclude:not(.ghost):hover { background-color: rgba(223, 0, 0, 0.25); } \ No newline at end of file diff --git a/client/components/tables/library/LibrariesTable.vue b/client/components/tables/library/LibrariesTable.vue index 329f0a1e..86ddec47 100644 --- a/client/components/tables/library/LibrariesTable.vue +++ b/client/components/tables/library/LibrariesTable.vue @@ -6,7 +6,7 @@ add - +