feedback-vos 1.0.41 → 1.0.44
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/README.md +6 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -415,8 +415,9 @@ function ScreenshotButton({
|
|
|
415
415
|
return element.hasAttribute("data-feedback-widget") || element.closest("[data-feedback-widget]") !== null;
|
|
416
416
|
}
|
|
417
417
|
});
|
|
418
|
-
const
|
|
419
|
-
const
|
|
418
|
+
const isMobile = window.innerWidth < 768;
|
|
419
|
+
const targetWidth = isMobile ? 1080 : 1920;
|
|
420
|
+
const targetHeight = isMobile ? 1920 : 1080;
|
|
420
421
|
const normalizedCanvas = document.createElement("canvas");
|
|
421
422
|
normalizedCanvas.width = targetWidth;
|
|
422
423
|
normalizedCanvas.height = targetHeight;
|