@applemusic-like-lyrics/react-full 0.4.0 → 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.
|
@@ -1512,7 +1512,11 @@ const VerticalLayout = ({ thumbSlot, coverSlot, smallControlsSlot, bigControlsSl
|
|
|
1512
1512
|
const targetCover = hideLyric_0 ? phonyBigCoverRef.current : phonySmallCoverRef.current;
|
|
1513
1513
|
if (!targetCover || !rootEl) return;
|
|
1514
1514
|
const immerseCover_0 = immerseCoverRef.current;
|
|
1515
|
-
while (getComputedStyle(rootEl).display === "contents")
|
|
1515
|
+
while (getComputedStyle(rootEl).display === "contents") {
|
|
1516
|
+
const parentEl = rootEl.parentElement;
|
|
1517
|
+
if (!parentEl) return;
|
|
1518
|
+
rootEl = parentEl;
|
|
1519
|
+
}
|
|
1516
1520
|
const rootB = rootEl.getBoundingClientRect();
|
|
1517
1521
|
const targetCoverB = targetCover.getBoundingClientRect();
|
|
1518
1522
|
if (immerseCover_0) {
|