Fix settings field rows, defaults and narrow layouts

Module rows drop the field-label colon and inset, the reminder number
fields align, target defaults print at their own precision, the
appointment offer wraps instead of squeezing to one word per line, the
export format legend matches its neighbour label, and the profile-photo
explainer reads as body text.
This commit is contained in:
Marc-André Bombeck committed 2026-10-08 20:20:03 +02:00
1 parent 2dda933d77
commit 37f922af97
10 files changed
+41 -19

No files matched your search

@@ -113,7 +113,7 @@ describe("change-password card placement", () => {
"utf8",
);
for (const marker of [
"settings.passwordReset",
"settings.passwordTitle",
"settings.changePassword",
"/api/auth/password",
// A change-password form is the pair current + new. The Account form
@@ -73,4 +73,13 @@ describe("<ThresholdsEditorSection> glucose unit", () => {
expect(html).toContain('value="72"');
expect(html).toContain('min="40"');
});
it("prints a whole-number default without a trailing .0", () => {
// A bound reads at its own precision: the fixed one decimal printed
// "70.0–99.0 mg/dL" and "8,000.0–15,000.0 steps".
authUser.current = { glucoseUnit: "mg/dL", unitPreference: "metric" };
const html = render();
expect(html).toMatch(/70–99 mg\/dL/);
expect(html).not.toMatch(/70\.0–99\.0/);
});
});