Merge pull request #4087 from mfilser/fix_labels_desktop_view_add_and_delete

Fix labels desktop view add and delete
This commit is contained in:
Lauri Ojansivu 2021-10-27 22:19:01 +03:00 committed by GitHub
commit 46f6d1e989
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -67,7 +67,7 @@ BlazeComponent.extendComponent({
// Disable drag-dropping if the current user is not a board member or is comment only
this.autorun(() => {
if (Utils.isMiniScreen()) {
if (Utils.isMiniScreenOrShowDesktopDragHandles()) {
$labels.sortable({
handle: '.label-handle',
});
@ -79,7 +79,7 @@ BlazeComponent.extendComponent({
{
'click .js-select-label'(event) {
const card = Utils.getCurrentCard();
const labelId = this._id;
const labelId = this.currentData()._id;
card.toggleLabel(labelId);
event.preventDefault();
},

View file

@ -225,3 +225,6 @@
ul.edit-labels-pop-over
span.fa.label-handle
padding-right: 10px;
span.fa.label-handle + .card-label
max-width: 180px