mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +00:00
Fix copy, colour and frame details across the record pages
- Achievements: '1 Tag', not '1 Tage'; point totals grouped; whole descriptions instead of a clamp that hid the target at the end. - Illness: the episode note label is translated, day notes read in the content colour. - Coach history: conversation titles read in the content colour. - Anamnesis and mental wellbeing: drop a second page gutter the shell already provides, and the nested main landmark. - Privacy: repair words broken by a stray hyphen and space. - Cycle: the ring caption reads 'Tag 9 deines Zyklus' as one phrase. - Practitioners: the add button says 'Hinzufügen' like every other page; a shorter search placeholder fits a phone. - Empty state cards inset their content from their border, so a phone's full-width action no longer runs into the frame.
This commit is contained in:
1 parent
9fd43623dd
commit
3e1f630fa1
17 files changed
+133
-82
No files matched your search
@@ -46,4 +46,13 @@ describe("<EmptyState>", () => {
|
||||
expect(card).toContain("border-dashed");
|
||||
expect(plain).not.toContain("border-dashed");
|
||||
});
|
||||
|
||||
it("insets the card variant's content from its border, not the plain one", () => {
|
||||
const card = renderToStaticMarkup(<EmptyState title="leer" />);
|
||||
const plain = renderToStaticMarkup(
|
||||
<EmptyState title="leer" variant="plain" />,
|
||||
);
|
||||
expect(card).toMatch(/class="[^"]*\bpx-4\b/);
|
||||
expect(plain).not.toMatch(/\bpx-4\b/);
|
||||
});
|
||||
});
|
||||
@@ -64,6 +64,9 @@ function EmptyState({
|
||||
className={cn(
|
||||
"flex flex-col items-center justify-center text-center",
|
||||
size === "compact" ? "gap-2 py-4" : "gap-3 py-8",
|
||||
// The card variant paints a border, so its content insets from it:
|
||||
// a full-width phone CTA otherwise ran edge to edge into the frame.
|
||||
variant === "card" && "px-4",
|
||||
)}
|
||||
>
|
||||
{icon ? (
|
||||
|
||||
Reference in new issue
Block a user