From e1d44cc54fc53fef3f88aeb7b00b620ce4be5d26 Mon Sep 17 00:00:00 2001 From: Ben Lind Date: Tue, 22 Jul 2014 16:57:38 -0400 Subject: [PATCH] HabitRPG/habitrpg#3260 Buttonless habit full width MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- script/index.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/script/index.coffee b/script/index.coffee index 32a8f592c4..b6c2d24c6c 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -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'