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/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 targetWidth = 1920;
419
- const targetHeight = 1080;
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;