@social-mail/social-mail-client 1.1.9 → 1.1.11

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.
@@ -29922,8 +29922,11 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
29922
29922
  icon: "fas fa-download",
29923
29923
  text: "Download"
29924
29924
  })));
29925
- const webp = `/api/files/webp/${appFileID}/${fileContentID}/${name}/${name}.webp`;
29926
- this.renderer = XNode.create("div", null, XNode.create(PinchZoomView, {
29925
+ const webp = /\.(jpg|png|jpeg|bmp)/i.test(name) ? `/api/files/download/${appFileID}/${fileContentID}/${name}` : `/api/files/webp/${appFileID}/${fileContentID}/${name}/${name}.webp`;
29926
+ this.renderer = XNode.create("div", {
29927
+ "data-display": "grid",
29928
+ "data-align-items": "stretch"
29929
+ }, XNode.create(PinchZoomView, {
29927
29930
  source: webp
29928
29931
  }));
29929
29932
  });