mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-26 21:53:06 +00:00
Merge pull request #213 from fsolla/cursor/pool-i198-68d46759-94e3
B115 — Início — strip sem faixa branca lateral (botões na borda)
This commit is contained in:
commit
a805b40bbc
2 changed files with 6 additions and 3 deletions
|
|
@ -138,9 +138,12 @@ export const CampaignHomeActionStrip = ({
|
||||||
)}
|
)}
|
||||||
{...finePointerPanProps}
|
{...finePointerPanProps}
|
||||||
>
|
>
|
||||||
|
{/* B115 — deliberate px-0: buttons enter from the device edge; the slot's
|
||||||
|
-mx-4 bleed already takes the scroller to the edge. Do not re-add a
|
||||||
|
lateral inset here (product reverted the B101 ul inset). */}
|
||||||
<ul
|
<ul
|
||||||
role="list"
|
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 }) => (
|
{actions?.map(({ id, ...button }) => (
|
||||||
<li key={id ?? button.href ?? button.label} className="m-0 list-none p-0">
|
<li key={id ?? button.href ?? button.label} className="m-0 list-none p-0">
|
||||||
|
|
|
||||||
|
|
@ -193,8 +193,8 @@ describe('CampaignHomeActionStrip', () => {
|
||||||
const list = scroller?.querySelector('ul[role="list"]')
|
const list = scroller?.querySelector('ul[role="list"]')
|
||||||
expect(list).toBeTruthy()
|
expect(list).toBeTruthy()
|
||||||
expect(list?.className).toContain('gap-0')
|
expect(list?.className).toContain('gap-0')
|
||||||
expect(list?.className).toContain('px-4')
|
expect(list?.className).toContain('px-0')
|
||||||
expect(list?.className).toContain('md:px-0')
|
expect(list?.className).not.toContain('px-4')
|
||||||
expect(list?.className).not.toContain('gap-2')
|
expect(list?.className).not.toContain('gap-2')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue