diff --git a/src/components/ClinicalDashboard.tsx b/src/components/ClinicalDashboard.tsx index a7b09580e..5168539b0 100644 --- a/src/components/ClinicalDashboard.tsx +++ b/src/components/ClinicalDashboard.tsx @@ -5373,6 +5373,12 @@ export function ClinicalDashboard({ // stay top-aligned so their lists start in a stable position. const centeredModeHome = showDesktopHomeComposer && activeModeResultKind !== "tools" && activeModeResultKind !== "favourites"; + // Short mode homes (centred homes plus the services/forms registry homes) + // drop the large mobile bottom padding so phones don't get a scrollbar for + // content that already fits. Result views keep the full clearance. + const compactMobileModeHome = + centeredModeHome || + ((searchMode === "services" || searchMode === "forms") && !modeSearchSubmitted && !query.trim() && !loading); // Submitted (non-answer) searches are result views, not mode homes: on phones // the bottom composer drops its chip row and hugs the screen edge so results // keep maximum vertical space. Mode homes keep the default chip-row layout. @@ -5576,12 +5582,20 @@ export function ClinicalDashboard({
) to avoid a needless scrollbar. + // sm+/lg values stay identical to the result-view treatment. searchMode === "answer" - ? "pb-32 sm:pb-36 lg:pb-40" + ? compactMobileModeHome + ? "pb-4 sm:pb-36 lg:pb-40" + : "pb-32 sm:pb-36 lg:pb-40" : hasMobileBottomSearch - ? compactMobileBottomSearch - ? "pb-8 sm:pb-10 lg:pb-12" - : "pb-32 sm:pb-10 lg:pb-12" + ? compactMobileModeHome + ? "pb-4 sm:pb-10 lg:pb-12" + : compactMobileBottomSearch + ? "pb-8 sm:pb-10 lg:pb-12" + : "pb-32 sm:pb-10 lg:pb-12" : "pb-8 sm:pb-10 lg:pb-12", )} > @@ -5610,9 +5624,12 @@ export function ClinicalDashboard({
- -