feedback-vos 1.0.47 → 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
@@ -421,9 +421,13 @@ function ScreenshotButton({
421
421
  ignoreElements: (element) => {
422
422
  const isWidget = element.hasAttribute("data-feedback-widget") || element.closest("[data-feedback-widget]") !== null;
423
423
  if (isWidget) return true;
424
- if (element.tagName === "IMG" || element.tagName === "CANVAS" || element.tagName === "VIDEO") {
424
+ const tagName = element.tagName;
425
+ if (tagName === "IMG" || tagName === "CANVAS" || tagName === "VIDEO" || tagName === "SVG") {
425
426
  const rect = element.getBoundingClientRect();
426
- if (rect.width === 0 || rect.height === 0) return true;
427
+ if (rect.width < 1 || rect.height < 1) {
428
+ console.warn("FeedbackWidget: Ignoring 0-sized media element:", tagName, element);
429
+ return true;
430
+ }
427
431
  }
428
432
  return false;
429
433
  }