Skip to content

Commit

Permalink
test: use display block on images inzero bounds tests to ensure corre…
Browse files Browse the repository at this point in the history
…ct sizing
  • Loading branch information
nerdyman committed Sep 6, 2024
1 parent 77dff61 commit 6c213fe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ export const ZeroBoundsWithLazyContent = () => {
data-testid="one"
alt="one"
src="https://raw.githubusercontent.com/nerdyman/stuff/main/libs/react-compare-slider/demo-images/e2e-test-1.png"
style={{ width: 128, height: 128, objectFit: 'cover' }}
style={{ display: 'block', width: 128, height: 128, objectFit: 'cover' }}
/>
),
itemTwo: (
<img
data-testid="two"
alt="two"
src="https://raw.githubusercontent.com/nerdyman/stuff/main/libs/react-compare-slider/demo-images/e2e-test-2.png"
style={{ width: 128, height: 128, objectFit: 'cover' }}
style={{ display: 'block', width: 128, height: 128, objectFit: 'cover' }}
/>
),
}));
Expand Down

0 comments on commit 6c213fe

Please sign in to comment.