diff --git a/client/components/cards/checklists.jade b/client/components/cards/checklists.jade index dfb4f8f96..e36a25c00 100644 --- a/client/components/cards/checklists.jade +++ b/client/components/cards/checklists.jade @@ -43,8 +43,11 @@ template(name="checklistDetail") h2.title +viewer = checklist.title - .checklist-progress-bar - .checklist-progress(style="width:{{finishedPercent}}%") {{finishedPercent}}% + + .checklist-progress-bar-container + .checklist-progress-text {{finishedPercent}}% + .checklist-progress-bar + .checklist-progress(style="width:{{finishedPercent}}%;{{#if $eq finishedPercent 0}}display:none{{/if}}") +checklistItems(checklist = checklist) template(name="checklistDeletePopup") diff --git a/client/components/cards/checklists.styl b/client/components/cards/checklists.styl index 6dad6c2e9..21fa1ba44 100644 --- a/client/components/cards/checklists.styl +++ b/client/components/cards/checklists.styl @@ -20,16 +20,23 @@ textarea.js-add-checklist-item, textarea.js-edit-checklist-item display: flex justify-content: space-between -.checklist-progress-bar - width: 90% - height: 20px +.checklist-progress-bar-container + display: flex + flex-direction: row - .checklist-progress - color: #fff !important - background-color: #2196F3 !important - padding: 0.01em 16px - border-radius: 16px - height: 100% + .checklist-progress-text + margin-right: 10px + + .checklist-progress-bar + width: 80% + height: 20px + + .checklist-progress + color: #fff !important + background-color: #2196F3 !important + padding: 0.01em 16px + border-radius: 16px + height: 100% .checklist-title .checkbox