mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 06:40:50 +00:00
Put the new workout blocks on the page's reading edge
SubPageShell insets its own heading to the card body edge rather than the container edge, so a section heading or a meta line rendered flush left sat 16 px to the left of everything above it. The day-context heading, the sport chips and the count line now take the same responsive inset.
This commit is contained in:
1 parent
0784cbcbb1
commit
bed634fd67
2 files changed
+11
-4
No files matched your search
@@ -84,6 +84,10 @@ export function WorkoutDetailDayContext({
|
||||
<section data-slot="workout-detail-day-context" className="space-y-3">
|
||||
<SectionHeading
|
||||
icon={CalendarDays}
|
||||
// `SubPageShell` tracks the card body edge for its own heading
|
||||
// rather than the container edge, so this heading takes the same
|
||||
// responsive card inset and every text run on the page shares one x.
|
||||
className="px-4 md:px-6"
|
||||
title={t("insights.workouts.detail.thatDayTitle")}
|
||||
action={
|
||||
<span className="text-muted-foreground text-xs">
|
||||
|
||||
Reference in new issue
Block a user