@social-mail/social-mail-client 1.2.331 → 1.2.332
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/dist/public/store/Store.pack.js +2 -3
- package/dist/public/store/Store.pack.js.map +1 -1
- package/dist/public/store/Store.pack.min.js +3 -2
- package/dist/public/store/Store.pack.min.js.map +1 -1
- package/dist/public/store/StoreItemDetailView.d.ts.map +1 -1
- package/dist/public/store/StoreItemDetailView.js +2 -3
- package/dist/public/store/StoreItemDetailView.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/public/store/StoreItemDetailView.tsx +2 -4
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ import ToggleButtonBar from "@web-atoms/web-controls/dist/basic/ToggleButtonBar"
|
|
|
17
17
|
const url = (window as any).pageUrl as URL;
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
let {1: storeID = "4", 2: itemID = "
|
|
20
|
+
let {1: storeID = "4", 2: itemID = "23" } = /^\/store\/([^\/]+)\/([^\/]+)\//.exec(url?.pathname) ?? {} as any;
|
|
21
21
|
|
|
22
22
|
storeID = parseInt(storeID, 36);
|
|
23
23
|
itemID = parseInt(itemID, 36);
|
|
@@ -53,6 +53,7 @@ const css = styled.css `
|
|
|
53
53
|
display: flex;
|
|
54
54
|
flex-direction: column;
|
|
55
55
|
overflow: auto;
|
|
56
|
+
max-height: 500px;
|
|
56
57
|
& > img {
|
|
57
58
|
cursor: pointer;
|
|
58
59
|
margin: 5px;
|
|
@@ -118,9 +119,6 @@ export default class StoreItemDetailView extends AtomControl {
|
|
|
118
119
|
|
|
119
120
|
this.model = await this.getItem();
|
|
120
121
|
|
|
121
|
-
const images = this.model.mediaFiles.where((x) => x.isPreview);
|
|
122
|
-
this.selectedFile = images[0];
|
|
123
|
-
|
|
124
122
|
const offer = this.model.mediaFiles.find((x) => x.title === "offer.html");
|
|
125
123
|
const specifications = this.model.mediaFiles.find((x) => x.title === "specs.html");
|
|
126
124
|
|