Skip to content

Commit

Permalink
fix(todo): add border to all todos, since last child ignores order
Browse files Browse the repository at this point in the history
  • Loading branch information
CostasAK committed Jul 25, 2024
1 parent 0392e71 commit 32d8a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/checklist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ function Todo({ name, reset, period = 0 }: TodoProps) {
key={name}
htmlFor={name}
className={cn(
"flex cursor-pointer flex-row items-center gap-2 border-b border-b-neutral-725 p-4 last:border-b-0 hover:bg-neutral-750",
"flex cursor-pointer flex-row items-center gap-2 border-t border-t-neutral-725 p-4 hover:bg-neutral-750",
completion > 0 && "italic opacity-50",
)}
style={{ order: nextReset / MINUTE + (completion > 0 ? 10 * YEAR : 0) }}
Expand Down

0 comments on commit 32d8a01

Please sign in to comment.