Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/ClinicalDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4539,7 +4539,10 @@ export function ClinicalDashboard({
<section
className={cn(
compactMobileModeHome
? "max-sm:flex max-sm:min-h-0 max-sm:flex-1 max-sm:flex-col max-sm:justify-center"
? cn(
"max-sm:flex max-sm:min-h-0 max-sm:flex-1 max-sm:flex-col",
centeredModeHome && "max-sm:justify-center",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep services/forms homes centered on phones

When the dashboard is opened at /?mode=services or /?mode=forms with no query, compactMobileModeHome is true through the services/forms clause while centeredModeHome is false, so this guard now drops max-sm:justify-center only for those registry homes. That moves the previously centered short mobile home content to the top; tools/favourites are not in compactMobileModeHome, so the change does not affect the modes named in the fix. Keep the centering condition separate from the tools/favourites exclusion or explicitly include services/forms here.

Useful? React with 👍 / 👎.

)
: "min-h-[calc(100dvh-12.5rem)] sm:min-h-[calc(100dvh-11rem)]",
centeredModeHome || (activeModeResultKind === "answer" && !answer && !loading)
? // On tall phones the centred home leans slightly toward the
Expand Down