[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:
2025-12-16 14:29:22 +09:00
parent 929a9020a1
commit 9d8cafc0a9
2 changed files with 14 additions and 3 deletions

View File

@@ -1312,10 +1312,21 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
// 최상단 패널이 DetailPanel이고 PlayerPanel에서 진입했는지 확인 // 최상단 패널이 DetailPanel이고 PlayerPanel에서 진입했는지 확인
const isTopPanelDetailFromPlayer = useMemo(() => { const isTopPanelDetailFromPlayer = useMemo(() => {
const result = let result =
topPanel?.name === panel_names.DETAIL_PANEL && topPanel?.name === panel_names.DETAIL_PANEL &&
topPanel?.panelInfo?.launchedFromPlayer === true; 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 상태 변화 로깅 // 🔍 DetailPanel 상태 변화 로깅
if (result) { if (result) {
dlog('🎬 [PlayerPanel] DetailPanel is now on top (from Player)', { dlog('🎬 [PlayerPanel] DetailPanel is now on top (from Player)', {

View File

@@ -291,7 +291,7 @@ const TrendingNowPanel = ({ panelInfo, spotlightId, isOnTop, ...rest }) => {
return ( return (
<div className={css.trendingNowWrap}> <div className={css.trendingNowWrap}>
{selectedIndex >= 1 && showButton && ( {isOnTop && selectedIndex >= 1 && showButton && (
<TButton <TButton
className={classNames(css.button, css.prevBtn)} className={classNames(css.button, css.prevBtn)}
onClick={handleIndicatorClick("prev")} onClick={handleIndicatorClick("prev")}
@@ -411,7 +411,7 @@ const TrendingNowPanel = ({ panelInfo, spotlightId, isOnTop, ...rest }) => {
</TVerticalPagenator> </TVerticalPagenator>
</TBody> </TBody>
</TPanel> </TPanel>
{topInfos && {isOnTop && topInfos &&
topInfos?.length > 0 && topInfos?.length > 0 &&
selectedIndex !== topInfos?.length - 1 && selectedIndex !== topInfos?.length - 1 &&
showButton && ( showButton && (