cclkit4svelte 0.2.3 → 0.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.
@@ -84,19 +84,14 @@ export let height;
84
84
 
85
85
  <style>
86
86
  .wrapper {
87
- position: relative;
88
87
  background: var(--bgColor);
89
88
  height: var(--height);
89
+ display: flex;
90
+ align-items: center;
91
+ justify-content: center;
90
92
  }
91
93
 
92
94
  svg {
93
- position: absolute;
94
- top: 0;
95
- bottom: 0;
96
- left: 0;
97
- right: 0;
98
- margin: auto;
99
- padding: 24px;
100
95
  height: 70%;
101
96
  width: 70%;
102
97
  }
@@ -6,7 +6,7 @@ export let altText;
6
6
  </script>
7
7
 
8
8
  <div class="ThumbnailWrapper" style="--imageSize: {imageSize}">
9
- <img {src} alt={altText} class="Thumbnail" style="--borderColor: var({borderColor})" />
9
+ <img src={src} alt={altText} class="Thumbnail" style="--borderColor: var({borderColor})" />
10
10
  </div>
11
11
 
12
12
  <style>
@@ -4,7 +4,7 @@ declare const __propDef: {
4
4
  props: {
5
5
  /**
6
6
  * サムネイル画像の大きさ
7
- * @type number
7
+ * @type string
8
8
  */ imageSize: string;
9
9
  /**
10
10
  * 枠線の色
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cclkit4svelte",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "author": "reiji1020 <sk@reiji1020.info>",
5
5
  "license": "MIT",
6
6
  "type": "module",