B115: remove px-4 do ul da action strip (botões entram da borda)

This commit is contained in:
Cursor Agent 2026-08-02 00:15:09 +00:00
parent f4823c1436
commit 9c4f00d1cb
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View file

@ -138,9 +138,12 @@ export const CampaignHomeActionStrip = ({
)}
{...finePointerPanProps}
>
{/* B115 — px-0 deliberado: os botões entram da borda do aparelho; o bleed
-mx-4 do slot já leva o scroller à borda. Não re-adicionar inset lateral
(B101 revertido pelo produto). */}
<ul
role="list"
className="m-0 flex min-w-max list-none snap-x snap-proximity gap-0 px-4 pb-1 md:px-0"
className="m-0 flex min-w-max list-none snap-x snap-proximity gap-0 px-0 pb-1"
>
{actions?.map(({ id, ...button }) => (
<li key={id ?? button.href ?? button.label} className="m-0 list-none p-0">

View file

@ -193,8 +193,8 @@ describe('CampaignHomeActionStrip', () => {
const list = scroller?.querySelector('ul[role="list"]')
expect(list).toBeTruthy()
expect(list?.className).toContain('gap-0')
expect(list?.className).toContain('px-4')
expect(list?.className).toContain('md:px-0')
expect(list?.className).toContain('px-0')
expect(list?.className).not.toContain('px-4')
expect(list?.className).not.toContain('gap-2')
})