diff --git a/src/components/campaign/shared/CampaignWizardShell.tsx b/src/components/campaign/shared/CampaignWizardShell.tsx index 6f6f1356..053e6abb 100644 --- a/src/components/campaign/shared/CampaignWizardShell.tsx +++ b/src/components/campaign/shared/CampaignWizardShell.tsx @@ -66,7 +66,7 @@ export const CampaignWizardShell = ({
diff --git a/src/components/campaign/shared/WizardMunicipalitySearchStep.tsx b/src/components/campaign/shared/WizardMunicipalitySearchStep.tsx index c2eb9794..85fd3c77 100644 --- a/src/components/campaign/shared/WizardMunicipalitySearchStep.tsx +++ b/src/components/campaign/shared/WizardMunicipalitySearchStep.tsx @@ -24,6 +24,7 @@ import { WIZARD_MUNICIPALITY_STEP_TITLE, wizardFlowTitleForSlug, } from '@/lib/campaignWizardCopy' +import { HOME_SEARCH_GROUP_LIST_CLASS } from '@/lib/homeSearchUi' import type { AccessibleMunicipality } from '@/lib/municipalityProximity' import { HOME_SEARCH_QUERY_MAX_LENGTH } from '@/lib/schemas/homeSearch' import { @@ -177,7 +178,7 @@ export const WizardMunicipalitySearchStep = ({ previousHref={previousHref} dismissHref={previousHref} > -
+
) : null} {results.status === 'success' && displayRows.length > 0 ? ( -
    +
      {displayRows.map(({ hit, continuityReason }) => (
    • { expect(caption?.textContent).toBe('Cairu') expect(caption?.className).toMatch(/md:block/) }) + + it('uses tighter top padding on mobile main content', () => { + const { container } = renderWizardShell({ + flowTitle: 'Ajustar votos', + stepTitle: WIZARD_MUNICIPALITY_STEP_TITLE, + isEntryStep: true, + previousHref: '/campanha', + children: null, + }) + + const main = container.querySelector('main') + expect(main?.className).toMatch(/pt-3/) + expect(main?.className).toMatch(/pb-6/) + expect(main?.className).toMatch(/md:py-6/) + }) })