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:
committed by
Blade Barringer
parent
4f5e813fcf
commit
e1d44cc54f
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user