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.mjs CHANGED
@@ -415,9 +415,13 @@ function ScreenshotButton({
415
415
  ignoreElements: (element) => {
416
416
  const isWidget = element.hasAttribute("data-feedback-widget") || element.closest("[data-feedback-widget]") !== null;
417
417
  if (isWidget) return true;
418
- if (element.tagName === "IMG" || element.tagName === "CANVAS" || element.tagName === "VIDEO") {
418
+ const tagName = element.tagName;
419
+ if (tagName === "IMG" || tagName === "CANVAS" || tagName === "VIDEO" || tagName === "SVG") {
419
420
  const rect = element.getBoundingClientRect();
420
- if (rect.width === 0 || rect.height === 0) return true;
421
+ if (rect.width < 1 || rect.height < 1) {
422
+ console.warn("FeedbackWidget: Ignoring 0-sized media element:", tagName, element);
423
+ return true;
424
+ }
421
425
  }
422
426
  return false;
423
427
  }