mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 16:12:11 +00:00
style(settings): widen Doctor-Report export card to full-row on md+
Doctor-report is the most user-facing export — give it its own row above the 4-card 2×2 grid so it reads as the primary action. Mobile keeps the single-column stack since every card is already full-width there.
This commit is contained in:
1 parent
8e4a8080dc
commit
5d3a4c0b13
1 file changed
+5
-1
@@ -105,6 +105,8 @@ interface ExportCardShellProps {
|
|||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
/** Footer slot — typically the "Download" button + status text. */
|
/** Footer slot — typically the "Download" button + status text. */
|
||||||
footer: React.ReactNode;
|
footer: React.ReactNode;
|
||||||
|
/** Extra grid-position classes applied to the outer card div. */
|
||||||
|
outerClassName?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
function ExportCardShell({
|
function ExportCardShell({
|
||||||
@@ -115,11 +117,12 @@ function ExportCardShell({
|
|||||||
format,
|
format,
|
||||||
children,
|
children,
|
||||||
footer,
|
footer,
|
||||||
|
outerClassName,
|
||||||
}: ExportCardShellProps) {
|
}: ExportCardShellProps) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
data-testid={testId}
|
data-testid={testId}
|
||||||
className="bg-card border-border flex h-full flex-col rounded-xl border p-5"
|
className={`bg-card border-border flex h-full flex-col rounded-xl border p-5${outerClassName ? ` ${outerClassName}` : ""}`}
|
||||||
>
|
>
|
||||||
<div className="flex items-start justify-between gap-3">
|
<div className="flex items-start justify-between gap-3">
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
@@ -208,6 +211,7 @@ function DoctorReportCard() {
|
|||||||
title={t("settings.sections.export.cards.doctorReport.title")}
|
title={t("settings.sections.export.cards.doctorReport.title")}
|
||||||
description={t("settings.sections.export.cards.doctorReport.description")}
|
description={t("settings.sections.export.cards.doctorReport.description")}
|
||||||
format="PDF"
|
format="PDF"
|
||||||
|
outerClassName="md:col-span-2"
|
||||||
footer={
|
footer={
|
||||||
<Button
|
<Button
|
||||||
data-testid="export-action-doctor-report"
|
data-testid="export-action-doctor-report"
|
||||||
|
|||||||
Reference in new issue
Block a user