From cbc71822b0730fb9a25d2c1db9e27af2563c1fcb Mon Sep 17 00:00:00 2001 From: Daniel Volz Date: Sat, 14 Feb 2026 20:24:28 +0100 Subject: [PATCH] fix: highlight empty medications in planner email with red background (#208) - Add light red background (#fef2f2) to table rows where medication is out of stock - Consistent with stock reminder email styling Closes #204 --- backend/src/routes/planner.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/routes/planner.ts b/backend/src/routes/planner.ts index 67b6715..b072e85 100644 --- a/backend/src/routes/planner.ts +++ b/backend/src/routes/planner.ts @@ -221,8 +221,10 @@ ${getFooterPlain(language)}`; } } + const rowBg = row.enough ? "" : " background: #fef2f2;"; + return ` - + ${safeName} ${safePlannerUsage} ${tr.common.pills} ${neededCell}