At opened card, toggle to show checklist at minicard. Part 3.

Thanks to xet7 !
pull/5100/head
Lauri Ojansivu 2 years ago
parent 1f216f5bff
commit 80312d3052
  1. 2
      client/components/cards/checklists.css
  2. 3
      client/components/cards/minicard.css
  3. 5
      client/components/cards/minicard.js

@ -40,6 +40,8 @@ textarea.js-edit-checklist-item {
display: flex;
justify-content: space-between;
}
.checklist-progress-bar-container {
display: flex;
flex-direction: row;

@ -4,6 +4,9 @@
.minicard .checklist-details-menu {
display: none;
}
.minicard .checklist-progress-bar-container {
width: 190px; /* TODO: Add adjustable width https://github.com/wekan/wekan/pull/4964 */
}
.minicard-wrapper {
cursor: pointer;
position: relative;

@ -92,6 +92,11 @@ BlazeComponent.extendComponent({
events() {
return [
{
'click .minicard-checklists'() {
// Prevents clicking checklist at minicard from opening card details,
// while still allowing checking checlist items.
event.preventDefault();
},
'click .js-linked-link'() {
if (this.data().isLinkedCard()) Utils.goCardId(this.data().linkedId);
else if (this.data().isLinkedBoard())

Loading…
Cancel
Save