mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Allows for use of checklist on mobile
This commit is contained in:
parent
f1a9e30956
commit
9df5c0e2de
4 changed files with 8 additions and 4 deletions
|
|
@ -88,7 +88,8 @@ template(name="checklistItems")
|
||||||
template(name='checklistItemDetail')
|
template(name='checklistItemDetail')
|
||||||
.js-checklist-item.checklist-item
|
.js-checklist-item.checklist-item
|
||||||
if canModifyCard
|
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}}")
|
.item-title.js-open-inlined-form.is-editable(class="{{#if item.isFinished }}is-checked{{/if}}")
|
||||||
+viewer
|
+viewer
|
||||||
= item.title
|
= item.title
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,7 @@ BlazeComponent.extendComponent({
|
||||||
events() {
|
events() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
'click .js-checklist-item .check-box': this.toggleItem,
|
'click .js-checklist-item .check-box-container': this.toggleItem,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -113,6 +113,9 @@ textarea.js-add-checklist-item, textarea.js-edit-checklist-item
|
||||||
&:hover
|
&:hover
|
||||||
background-color: darken(white, 8%)
|
background-color: darken(white, 8%)
|
||||||
|
|
||||||
|
.check-box-container
|
||||||
|
padding-right: 1px;
|
||||||
|
|
||||||
.check-box
|
.check-box
|
||||||
margin: 0.1em 0 0 0;
|
margin: 0.1em 0 0 0;
|
||||||
&.is-checked
|
&.is-checked
|
||||||
|
|
@ -121,7 +124,7 @@ textarea.js-add-checklist-item, textarea.js-edit-checklist-item
|
||||||
|
|
||||||
.item-title
|
.item-title
|
||||||
flex: 1
|
flex: 1
|
||||||
padding-left: 10px;
|
margin-left: 10px;
|
||||||
&.is-checked
|
&.is-checked
|
||||||
color: #8c8c8c
|
color: #8c8c8c
|
||||||
font-style: italic
|
font-style: italic
|
||||||
|
|
|
||||||
2
package-lock.json
generated
2
package-lock.json
generated
|
|
@ -3835,7 +3835,7 @@
|
||||||
"requires": {
|
"requires": {
|
||||||
"deep-extend": "^0.6.0",
|
"deep-extend": "^0.6.0",
|
||||||
"ini": "~1.3.0",
|
"ini": "~1.3.0",
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.0",
|
||||||
"strip-json-comments": "~2.0.1"
|
"strip-json-comments": "~2.0.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue