mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-07 12:22:03 +00:00
fix(coach): pin medical disclaimer at bottom of message thread
v1.4.22 B4 moved the disclaimer ("Coach replies are generated.
Clinical decisions belong with your doctor.") into the sources-rail
footer. The rail only paints at `xl+` viewports; on `<xl` (every
laptop and every mobile) the disclaimer was reachable only by
opening the chevron tray. That dropped the medical-disclaimer reach
from "every Coach session" to "the subset of users who tap a
chevron" — material regression for clinical-adjacent UI.
Pin a small persistent line at the bottom of the message thread so
the disclaimer paints regardless of viewport. The rail footer stays
for desktop users; the redundancy is intentional.
Closes Design-H3, Design-M4.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
651a529cdd
commit
65a8b5a8b6
1 file changed
+15
@@ -145,6 +145,21 @@ export function MessageThread({
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
{/* v1.4.22 W5 reconcile (Design-H3) — medical-disclaimer
|
||||
reach regression. v1.4.22 B4 moved the disclaimer to the
|
||||
sources-rail footer, but the rail is xl-only; on mobile
|
||||
and laptop viewports the disclaimer was only reachable
|
||||
via the chevron tray. Pin a small persistent line at the
|
||||
bottom of the message thread so every Coach session
|
||||
carries the disclaimer regardless of viewport. The rail
|
||||
footer stays for desktop users — the redundancy is
|
||||
intentional for clinical-adjacent UI. */}
|
||||
<p
|
||||
data-slot="coach-thread-disclaimer"
|
||||
className="text-muted-foreground mt-auto pt-2 text-[10px] leading-relaxed"
|
||||
>
|
||||
{t("insights.coach.composerDisclaimer")}
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user