Mediabibliotheek: gelijke ruimte rond het selectievakje op de tegel
Continuous Integration / config-sls (pull_request) Successful in 10s
Continuous Integration / config-asf (pull_request) Successful in 20s
Continuous Integration / changes (pull_request) Successful in 21s
Continuous Integration / compile-sites (pull_request) Successful in 1m46s
Continuous Integration / backend-build (pull_request) Successful in 1m51s
Continuous Integration / vulnerability-scan (pull_request) Successful in 1m52s
Continuous Integration / frontend-prepare (pull_request) Successful in 2m37s
Continuous Integration / backend-test (pull_request) Successful in 3m22s
Continuous Integration / frontend-build (pull_request) Successful in 38s
Continuous Integration / frontend-lint (pull_request) Successful in 44s
Continuous Integration / frontend-test (pull_request) Successful in 2m48s
Continuous Integration / publish-sls-test (pull_request) Skipped
Continuous Integration / publish-sls-production (pull_request) Skipped
Continuous Integration / deploy-sls-test (pull_request) Skipped
Continuous Integration / deploy-sls-production (pull_request) Skipped
Continuous Integration / publish-asf-test (pull_request) Skipped
Continuous Integration / deploy-asf-test (pull_request) Skipped
Continuous Integration / smoke-sls-test (pull_request) Skipped
Continuous Integration / smoke-asf-test (pull_request) Skipped
Continuous Integration / config-sls (pull_request) Successful in 10s
Continuous Integration / config-asf (pull_request) Successful in 20s
Continuous Integration / changes (pull_request) Successful in 21s
Continuous Integration / compile-sites (pull_request) Successful in 1m46s
Continuous Integration / backend-build (pull_request) Successful in 1m51s
Continuous Integration / vulnerability-scan (pull_request) Successful in 1m52s
Continuous Integration / frontend-prepare (pull_request) Successful in 2m37s
Continuous Integration / backend-test (pull_request) Successful in 3m22s
Continuous Integration / frontend-build (pull_request) Successful in 38s
Continuous Integration / frontend-lint (pull_request) Successful in 44s
Continuous Integration / frontend-test (pull_request) Successful in 2m48s
Continuous Integration / publish-sls-test (pull_request) Skipped
Continuous Integration / publish-sls-production (pull_request) Skipped
Continuous Integration / deploy-sls-test (pull_request) Skipped
Continuous Integration / deploy-sls-production (pull_request) Skipped
Continuous Integration / publish-asf-test (pull_request) Skipped
Continuous Integration / deploy-asf-test (pull_request) Skipped
Continuous Integration / smoke-sls-test (pull_request) Skipped
Continuous Integration / smoke-asf-test (pull_request) Skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -152,7 +152,8 @@ export function PhotoSelectionList({ items, selection, onSelectionChange, isDisa
|
||||
className={cn('relative overflow-hidden rounded-md border bg-card', selection.has(item.id) && 'ring-2 ring-primary')}
|
||||
data-testid={`photo-row-${item.id}`}
|
||||
>
|
||||
<div className="absolute left-2 top-2 z-[1] rounded bg-background/90 p-1 shadow-sm">{checkbox}</div>
|
||||
{/* flex (not a block with an inline box inside): no line box, so no extra space under the checkbox and equal padding on all four sides */}
|
||||
<div className="absolute left-2 top-2 z-[1] flex rounded bg-background/90 p-1 shadow-sm" data-testid={`photo-chip-${item.id}`}>{checkbox}</div>
|
||||
{thumbnail}
|
||||
<div className="p-2">{details}</div>
|
||||
</li>
|
||||
|
||||
@@ -295,6 +295,9 @@ describe('MediaLibraryPage', () => {
|
||||
await screen.findByTestId('photo-selection-list');
|
||||
expect(screen.getByTestId('photo-items')).toHaveAttribute('data-layout', 'tiles');
|
||||
expect(screen.getByTestId('layout-tiles')).toHaveAttribute('aria-pressed', 'true');
|
||||
// The checkbox chip is a flex box with equal padding: no inline line box that would add space under the box.
|
||||
const chip = screen.getAllByTestId(/^photo-chip-/)[0]!;
|
||||
expect(chip).toHaveClass('flex', 'p-1');
|
||||
|
||||
// Selecting and the bulk bar work on tiles.
|
||||
await userEvent.click(screen.getByRole('checkbox', { name: 'zomer.jpg' }));
|
||||
|
||||
Reference in New Issue
Block a user