@easy-web/core 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-web/core",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -51,6 +51,7 @@ const formattedDate = new Intl.DateTimeFormat(locale ?? undefined, { dateStyle:
51
51
  }
52
52
  .ew-blog-card__image {
53
53
  width: 100%;
54
+ height: auto;
54
55
  aspect-ratio: 16 / 9;
55
56
  object-fit: cover;
56
57
  display: block;
@@ -48,6 +48,7 @@ const Tag = href ? 'a' : 'div';
48
48
  }
49
49
  .ew-card__image {
50
50
  width: 100%;
51
+ height: auto;
51
52
  aspect-ratio: 16 / 9;
52
53
  object-fit: cover;
53
54
  display: block;
@@ -56,6 +56,8 @@ describe('<Card item>', () => {
56
56
  expect(img).toContain('alt="A touring bicycle"');
57
57
  expect(img).toContain('class="ew-card__image"');
58
58
  expect(img).toContain('loading="lazy"');
59
+ expect(img).toContain('width="1600"');
60
+ expect(img).toContain('height="900"');
59
61
  expect(html).toContain('<h3 class="ew-card__title">Touring bicycle</h3>');
60
62
  expect(html).toContain('<p class="ew-card__description">Ready for long rides</p>');
61
63
  });
@@ -129,6 +131,8 @@ describe('<BlogPostCard item>', () => {
129
131
  expect(img).toContain(`sizes="${gridSizes}"`);
130
132
  expect(img).toContain('alt="Players at the oche"');
131
133
  expect(img).toContain('class="ew-blog-card__image"');
134
+ expect(img).toContain('width="1600"');
135
+ expect(img).toContain('height="900"');
132
136
  expect(html).toContain('<h3 class="ew-blog-card__title">Season opener</h3>');
133
137
  expect(html).toContain('<time class="ew-blog-card__date" datetime="2025-03-15T12:00:00.000Z">15.03.2025</time>');
134
138
  expect(html).toContain('<p class="ew-blog-card__description">The first match day of the season</p>');