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
This commit is contained in:
Daniel Volz
2026-02-14 20:24:28 +01:00
committed by GitHub
parent 150be1e114
commit cbc71822b0
+3 -1
View File
@@ -221,8 +221,10 @@ ${getFooterPlain(language)}`;
}
}
const rowBg = row.enough ? "" : " background: #fef2f2;";
return `
<tr>
<tr style="${rowBg}">
<td style="padding: 10px 12px; border-bottom: 1px solid #e5e7eb; white-space: nowrap;">${safeName}</td>
<td style="padding: 10px 12px; border-bottom: 1px solid #e5e7eb; text-align: center; white-space: nowrap;"><strong>${safePlannerUsage}</strong> ${tr.common.pills}</td>
<td style="padding: 10px 12px; border-bottom: 1px solid #e5e7eb; text-align: center; white-space: nowrap;">${neededCell}</td>