Drag cards by dragging them over the title text instead of selecting it.
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Is your feature request related to a problem? Please describe. It is really annoying that I can drag cards only in specific areas. I don't see the point of being able to select the card title text in the overview.
Describe the solution you'd like I want to be able to drag a card independent from where I click on the card (except for buttons, of course). I know there is the closed bug #5378 of a user complaining that he cannot select the title text of a card and it get's dragged instead. But why don't open the card for selecting the title text? Moreover closing the mentioned bug (option to edit title without opening the card was removed) caused another problem described in #7265.
Describe alternatives you've considered Preferrred alternative:
- Set css
user-select: nonefor the card title text - Make the card draggable in the whole purple marked area
Not preferred but "i-can-live-with"-alternative:
- set css
cursor: pointerfor the purple marked area in the image except the title text - set css
cursor: textfor the title text
Additional context none
@grnd-alt sorry for poking you, but since you edited the linked issue four days ago, I think you still have the context in mind and can evaluate my feature request better than someone who will look at it in two months.
See also how long card titles affect the draggable area.
Removing the css class "dragDisabled" for the element would make the card draggable and non-selectable: https://github.com/nextcloud/deck/blob/90f51f931f56834b1892f5c644a736b3fadcfa0e/src/components/cards/CardItem.vue#L23
I can reproduce the issue.
Workaround: This problem is soo annoying that I wrote a greasemonkey script as workaround:
// ==UserScript==
// @name Deck-Drag
// @version 2
// @grant none
// @include //apps/deck/board/\d+$/
// ==/UserScript==
function removeDragDisabled() {
document.querySelectorAll("span.dragDisabled").forEach(span => span.classList.remove("dragDisabled"));
console.log("Deck-Drag ran.");
}
window.addEventListener('load', removeDragDisabled, false);
const observer = new MutationObserver(removeDragDisabled);
observer.observe(document.body, {
childList: true,
subtree: true
});
Thank you for the workaround! This was really annoying, the workaround works for me and improves the usability of the decks app a lot!