feedback-vos 1.0.46 → 1.0.49

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.js CHANGED
@@ -419,7 +419,17 @@ function ScreenshotButton({
419
419
  // Maintain proper container rendering
420
420
  logging: false,
421
421
  ignoreElements: (element) => {
422
- return element.hasAttribute("data-feedback-widget") || element.closest("[data-feedback-widget]") !== null;
422
+ const isWidget = element.hasAttribute("data-feedback-widget") || element.closest("[data-feedback-widget]") !== null;
423
+ if (isWidget) return true;
424
+ const tagName = element.tagName;
425
+ if (tagName === "IMG" || tagName === "CANVAS" || tagName === "VIDEO" || tagName === "SVG") {
426
+ const rect = element.getBoundingClientRect();
427
+ if (rect.width < 1 || rect.height < 1) {
428
+ console.warn("FeedbackWidget: Ignoring 0-sized media element:", tagName, element);
429
+ return true;
430
+ }
431
+ }
432
+ return false;
423
433
  }
424
434
  });
425
435
  if (canvas.width === 0 || canvas.height === 0) {