HabitRPG/habitrpg#3260 Buttonless habit full width

When the user has neither a plus nor a minus button on
one of their habits, the habit’s title will now span the entire
width of the task div instead of having a gap to the left.
This commit is contained in:
Ben Lind 2014-07-22 16:57:38 -04:00 committed by Blade Barringer
parent 4f5e813fcf
commit e1d44cc54f

View file

@ -280,6 +280,7 @@ api.taskClasses = (task, filters=[], dayStart=0, lastCron=+new Date, showComplet
classes += " uncompleted"
else if type is 'habit'
classes += ' habit-wide' if task.down and task.up
classes += ' habit-narrow' if !task.down and !task.up
if value < -20
classes += ' color-worst'