srcdev-nuxt-components 2.2.6 → 2.2.7

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.
@@ -8,7 +8,7 @@
8
8
  <div v-if="showGallery" class="gallery-content" :class="[{ loaded: isLoading }]">
9
9
  <div class="list" ref="sliderGalleryImagesList">
10
10
  <div v-for="(item, index) in galleryData" :key="index" class="item">
11
- <img :src="item.src" :alt="item.alt" @load="handleImageLoad(index)" @error="handleImageError(index)" loading="lazy" />
11
+ <NuxtImg :src="item.src" :alt="item.alt" @load="handleImageLoad(index)" @error="handleImageError(index)" loading="lazy" />
12
12
  <div class="content">
13
13
  <div class="author">{{ item.stylist }}</div>
14
14
  <div class="title">{{ item.title }}</div>
@@ -239,18 +239,17 @@ onMounted(() => {
239
239
  </script>
240
240
 
241
241
  <style lang="css">
242
- /* slider-gallery */
243
242
  .slider-gallery {
244
243
  --_animationDuration: v-bind(animationDuration + 'ms');
245
244
 
246
245
  --_thumbnailAspectRatio: 150 /220;
247
246
 
248
- --_thumbnailWidth: 100px;
249
- --_thumbnailHeight: 165px;
247
+ --_thumbnailWidth: var(--_thumbnailMobileWidth, 100px);
248
+ --_thumbnailHeight: var(--_thumbnailMobileHeight, 165px);
250
249
 
251
250
  @media screen and (min-width: 1024px) {
252
- --_thumbnailWidth: 150px;
253
- --_thumbnailHeight: 220px;
251
+ --_thumbnailWidth: var(--_thumbnailDesktopWidth, 150px);
252
+ --_thumbnailHeight: var(--_thumbnailDesktopHeight, 220px);
254
253
  }
255
254
 
256
255
  height: 100svh;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "srcdev-nuxt-components",
3
3
  "type": "module",
4
- "version": "2.2.6",
4
+ "version": "2.2.7",
5
5
  "main": "nuxt.config.ts",
6
6
  "scripts": {
7
7
  "clean": "rm -rf .nuxt && rm -rf .output && rm -rf .playground/.nuxt && rm -rf .playground/.output",