summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevin McAllester <devin.mcallester@pnnl.gov>2020-04-14 17:05:58 -0700
committerDevin McAllester <devin.mcallester@pnnl.gov>2020-04-14 17:05:58 -0700
commit9df5c0e2de0d2a1d3a200bb40a7f39dfa1ef4f56 (patch)
tree7baf71bc01733ce4777fe9aa13e449ada9cee44b
parentf1a9e30956f96d600057ead94458a912f28ca649 (diff)
downloadwekan-9df5c0e2de0d2a1d3a200bb40a7f39dfa1ef4f56.tar.gz
wekan-9df5c0e2de0d2a1d3a200bb40a7f39dfa1ef4f56.tar.bz2
wekan-9df5c0e2de0d2a1d3a200bb40a7f39dfa1ef4f56.zip
Allows for use of checklist on mobile
-rw-r--r--client/components/cards/checklists.jade3
-rw-r--r--client/components/cards/checklists.js2
-rw-r--r--client/components/cards/checklists.styl5
-rw-r--r--package-lock.json2
4 files changed, 8 insertions, 4 deletions
diff --git a/client/components/cards/checklists.jade b/client/components/cards/checklists.jade
index 391769e9..1b1e088a 100644
--- a/client/components/cards/checklists.jade
+++ b/client/components/cards/checklists.jade
@@ -88,7 +88,8 @@ template(name="checklistItems")
template(name='checklistItemDetail')
.js-checklist-item.checklist-item
if canModifyCard
- .check-box.materialCheckBox(class="{{#if item.isFinished }}is-checked{{/if}}")
+ .check-box-container
+ .check-box.materialCheckBox(class="{{#if item.isFinished }}is-checked{{/if}}")
.item-title.js-open-inlined-form.is-editable(class="{{#if item.isFinished }}is-checked{{/if}}")
+viewer
= item.title
diff --git a/client/components/cards/checklists.js b/client/components/cards/checklists.js
index c88fdd82..94d8176b 100644
--- a/client/components/cards/checklists.js
+++ b/client/components/cards/checklists.js
@@ -250,7 +250,7 @@ BlazeComponent.extendComponent({
events() {
return [
{
- 'click .js-checklist-item .check-box': this.toggleItem,
+ 'click .js-checklist-item .check-box-container': this.toggleItem,
},
];
},
diff --git a/client/components/cards/checklists.styl b/client/components/cards/checklists.styl
index 8ac37a15..0a6d688b 100644
--- a/client/components/cards/checklists.styl
+++ b/client/components/cards/checklists.styl
@@ -113,6 +113,9 @@ textarea.js-add-checklist-item, textarea.js-edit-checklist-item
&:hover
background-color: darken(white, 8%)
+ .check-box-container
+ padding-right: 1px;
+
.check-box
margin: 0.1em 0 0 0;
&.is-checked
@@ -121,7 +124,7 @@ textarea.js-add-checklist-item, textarea.js-edit-checklist-item
.item-title
flex: 1
- padding-left: 10px;
+ margin-left: 10px;
&.is-checked
color: #8c8c8c
font-style: italic
diff --git a/package-lock.json b/package-lock.json
index 07e58d20..5092dbae 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3835,7 +3835,7 @@
"requires": {
"deep-extend": "^0.6.0",
"ini": "~1.3.0",
- "minimist": "^1.2.5",
+ "minimist": "^1.2.0",
"strip-json-comments": "~2.0.1"
},
"dependencies": {