fix: strike through completed habits
ci / docker (push) Successful in 6m0s

This commit is contained in:
2026-09-08 09:58:43 +08:00
parent 7ec480914a
commit 663a69341a
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -159,6 +159,10 @@ describe('task and habit row decoration', () => {
expect(css).toContain('.password-form{width:100%;display:grid;gap:10px}')
})
it('strikes through completed habit names', () => {
expect(css).toContain('.habit-row.done .habit-name{color:var(--accent);text-decoration:line-through')
})
it('keeps habit cards borderless so the rounded left edge has no visual gap', () => {
expect(css).toMatch(/\.habit-row\{border:0;/)
expect(css).not.toMatch(/\.habit-row\{[^}]*border-top:/)