style(ui): unify view toggles at h-8 and View all buttons

Extract a shared view-toggle utility so list/grid switchers use the same 32px control height instead of mixed h-8/h-9 styles. Point section-heading View all links at the shared button class so they match other actions.
This commit is contained in:
Andras Bacsai
2026-09-10 08:40:41 +02:00
parent fbb569a4b3
commit 285684ad3c
13 changed files with 51 additions and 11 deletions
@@ -12,7 +12,7 @@ it('provides grid and table views for compose resources without sorting controls
->toContain('aria-label="Grid view"')
->toContain('mb-3 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between')
->toContain('flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-start')
->toContain('flex h-8 items-center rounded-lg border border-neutral-200 bg-white')
->toContain('class="view-toggle"')
->not->toContain('flex h-9 items-center rounded-lg border border-neutral-200 bg-white')
->toContain("localStorage.setItem('service-compose-resources-view', mode)")
->not->toContain('>Sort</button>')