@hoangyell/gallery 1.2.2 → 1.2.3

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": "@hoangyell/gallery",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Astro image gallery with lightbox, pyramid multi-row layout, and accessible controls.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/Gallery.astro CHANGED
@@ -176,7 +176,7 @@ if (resolvedRows <= 1 || galleryItems.length <= 1) {
176
176
  loading="lazy"
177
177
  decoding="async"
178
178
  class="hy-gallery-img"
179
- style={`object-fit: ${item.fit} !important;`}
179
+ style={`object-fit: ${item.fit} !important; aspect-ratio: auto ${item.width} / ${item.height};`}
180
180
  />
181
181
  </button>
182
182
  );
@@ -327,7 +327,6 @@ if (resolvedRows <= 1 || galleryItems.length <= 1) {
327
327
  padding: 0;
328
328
  object-fit: cover;
329
329
  object-position: center;
330
- aspect-ratio: auto;
331
330
  max-width: none;
332
331
  max-height: none;
333
332
  transform-origin: center;