@applemusic-like-lyrics/react-full 0.4.1 → 0.4.2

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.
@@ -1486,7 +1486,11 @@ const VerticalLayout = ({ thumbSlot, coverSlot, smallControlsSlot, bigControlsSl
1486
1486
  const targetCover = hideLyric_0 ? phonyBigCoverRef.current : phonySmallCoverRef.current;
1487
1487
  if (!targetCover || !rootEl) return;
1488
1488
  const immerseCover_0 = immerseCoverRef.current;
1489
- while (getComputedStyle(rootEl).display === "contents") rootEl = rootEl.parentElement;
1489
+ while (getComputedStyle(rootEl).display === "contents") {
1490
+ const parentEl = rootEl.parentElement;
1491
+ if (!parentEl) return;
1492
+ rootEl = parentEl;
1493
+ }
1490
1494
  const rootB = rootEl.getBoundingClientRect();
1491
1495
  const targetCoverB = targetCover.getBoundingClientRect();
1492
1496
  if (immerseCover_0) {