mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
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:
parent
4f5e813fcf
commit
e1d44cc54f
1 changed files with 1 additions and 0 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue