cclkit4svelte 1.2.3 → 1.2.5

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.
@@ -10,7 +10,7 @@ const prevSlide = () => {
10
10
  };
11
11
  </script>
12
12
 
13
- <div class="carouselWrapper" style="--carousel-width: {csWidth}; --translate-x: {-currentIndex * 100}%)">
13
+ <div class="carouselWrapper" style="--carousel-width: {csWidth}; --translate-x: calc(-{currentIndex} * 100%)">
14
14
  <div class="slides">
15
15
  {#each src as item, index}
16
16
  <img class="slide" src={item.src} alt={item.alt} />
@@ -34,12 +34,13 @@ const prevSlide = () => {
34
34
  transform: translateX(var(--translate-x));
35
35
  }
36
36
  .slide {
37
- min-width: 100%;
37
+ width: 100%;
38
+ height: 100%;
38
39
  }
39
40
  .buttons {
40
41
  position: absolute;
41
42
  top: 50%;
42
- width: 95%;
43
+ width: 100%;
43
44
  display: flex;
44
45
  justify-content: space-between;
45
46
  transform: translateY(-50%);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cclkit4svelte",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "author": "reiji1020 <sk@reiji1020.info>",
5
5
  "license": "MIT",
6
6
  "type": "module",