[251216] fix: TrendingNowPanel PlayerPanel Bg
🕐 커밋 시간: 2025. 12. 16. 14:29:22 📊 변경 통계: • 총 파일: 2개 • 추가: +14줄 • 삭제: -3줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx ~ com.twin.app.shoptime/src/views/TrendingNowPanel/TrendingNowPanel.jsx
This commit is contained in:
@@ -1312,10 +1312,21 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
|
||||
|
||||
// 최상단 패널이 DetailPanel이고 PlayerPanel에서 진입했는지 확인
|
||||
const isTopPanelDetailFromPlayer = useMemo(() => {
|
||||
const result =
|
||||
let result =
|
||||
topPanel?.name === panel_names.DETAIL_PANEL &&
|
||||
topPanel?.panelInfo?.launchedFromPlayer === true;
|
||||
|
||||
// MediaPanel이 최상단에 있고 그 아래가 DetailPanel인 경우도 체크
|
||||
if (!result && topPanel?.name === panel_names.MEDIA_PANEL) {
|
||||
const prevPanel = panels[panels.length - 2];
|
||||
if (
|
||||
prevPanel?.name === panel_names.DETAIL_PANEL &&
|
||||
prevPanel?.panelInfo?.launchedFromPlayer === true
|
||||
) {
|
||||
result = true;
|
||||
}
|
||||
}
|
||||
|
||||
// 🔍 DetailPanel 상태 변화 로깅
|
||||
if (result) {
|
||||
dlog('🎬 [PlayerPanel] DetailPanel is now on top (from Player)', {
|
||||
|
||||
Reference in New Issue
Block a user