lightnet 3.4.0 → 3.4.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# lightnet
|
|
2
2
|
|
|
3
|
+
## 3.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#254](https://github.com/LightNetDev/LightNet/pull/254) [`46c0f7c`](https://github.com/LightNetDev/LightNet/commit/46c0f7c693a46a7a2e06e72c4a333368aa8f7485) Thanks [@smn-cds](https://github.com/smn-cds)! - Improve responsive image variants:
|
|
8
|
+
|
|
9
|
+
- Improve image quality on search result items
|
|
10
|
+
- Limit the size of the media list image
|
|
11
|
+
- Streamline details page cover image variants
|
|
12
|
+
- Streamline gallery image variants
|
|
13
|
+
|
|
3
14
|
## 3.4.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -52,7 +52,7 @@ const items = itemsInput.filter((item) => !!item)
|
|
|
52
52
|
class="h-full w-full object-contain"
|
|
53
53
|
src={item.data.image}
|
|
54
54
|
alt=""
|
|
55
|
-
widths={[
|
|
55
|
+
widths={[256, 512, 768, 1024]}
|
|
56
56
|
sizes={
|
|
57
57
|
"(max-width: 640px) calc(calc(100vw - 3.5rem ) / 2), " +
|
|
58
58
|
"(max-width: 768px) calc(calc(100vw - 5rem ) / 3), " +
|
package/src/pages/api/search.ts
CHANGED
|
@@ -21,7 +21,7 @@ const isPortraitImage = image.height > image.width
|
|
|
21
21
|
<Image
|
|
22
22
|
class:list={isPortraitImage ? "h-52 w-auto sm:h-72" : "h-auto w-52 sm:w-72"}
|
|
23
23
|
alt=""
|
|
24
|
-
widths={[
|
|
24
|
+
widths={[256, 512, 768, 1024]}
|
|
25
25
|
sizes="(max-width: 640px) 13rem, 18rem"
|
|
26
26
|
src={image}
|
|
27
27
|
quality="high"
|