Skip to content

Commit

Permalink
Add 1px margin to task badges so they don't run into each other and i…
Browse files Browse the repository at this point in the history
…cons
  • Loading branch information
SabreCat committed Jan 7, 2014
1 parent ac1bcd4 commit d6e6daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/shared/tasks/task.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ li(bindonce='list', bo-id='"task-"+task.id', ng-repeat='task in obj[list.type+"s
.task-meta-controls

// Due Date
span.task-date(ng-if='task.type=="todo" && task.date')
span.task-date(ng-if='task.type=="todo" && task.date', style='margin:1px')
span(ng-class='{"label label-important":moment(task.date).isBefore(_today)}') {{moment(task.date).format('MM/DD')}}
// Streak
span(ng-show='task.streak') {{task.streak}}
Expand All @@ -12,7 +12,7 @@ li(bindonce='list', bo-id='"task-"+task.id', ng-repeat='task in obj[list.type+"s

// Icons only available if you own the tasks (aka, hidden from challenge stats)
span(ng-if='!obj._locked')
a.badge(ng-if='task.checklist[0]', ng-class='{"badge-success":checklistCompletion(task.checklist) == task.checklist.length}', ng-click='collapseChecklist(task)')
a.badge(ng-if='task.checklist[0]', ng-class='{"badge-success":checklistCompletion(task.checklist) == task.checklist.length}', ng-click='collapseChecklist(task)', style='margin:1px')
{{checklistCompletion(task.checklist)}}/{{task.checklist.length}}

i.icon-tags(tooltip='{{appliedTags(user.tags, task.tags)}}', ng-hide='Shared.noTags(task.tags)')
Expand Down

0 comments on commit d6e6daa

Please sign in to comment.