[251118] fix: hideModalVideo(),showModalVideo()
🕐 커밋 시간: 2025. 11. 18. 09:44:39 📊 변경 통계: • 총 파일: 7개 • 추가: +23줄 • 삭제: -23줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/actions/playActions.js ~ com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.v3.js ~ com.twin.app.shoptime/src/hooks/useVideoTransition/useVideoMove.bak.js ~ com.twin.app.shoptime/src/hooks/useVideoTransition/useVideoMove.original.js ~ com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx ~ com.twin.app.shoptime/src/views/HomePanel/HomePanel.jsx ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx 🔧 주요 변경 내용: • 핵심 비즈니스 로직 개선 • UI 컴포넌트 아키텍처 개선 • 소규모 기능 개선 • 코드 정리 및 최적화 • 모듈 구조 개선
This commit is contained in:
@@ -78,8 +78,7 @@ export const startVideoPlayer =
|
||||
const panels = getState().panels.panels;
|
||||
const topPanel = panels[panels.length - 1];
|
||||
let panelWorkingAction = pushPanel;
|
||||
|
||||
// const panelName = useNewPlayer ? panel_names.PLAYER_PANEL_NEW : panel_names.PLAYER_PANEL;
|
||||
|
||||
const panelName = panel_names.PLAYER_PANEL;
|
||||
|
||||
if (topPanel && topPanel.name === panelName) {
|
||||
@@ -389,7 +388,7 @@ export const hideModalVideo = () => (dispatch, getState) => {
|
||||
},
|
||||
};
|
||||
|
||||
// console.log('[HomePanel] shrinkVideoTo1px: saving shrinkInfo', {
|
||||
// console.log('[HomePanel] hideModalVideo: saving shrinkInfo', {
|
||||
// shrinkInfo: updatedPlayerState.shrinkInfo,
|
||||
// modalStyle: panelInfo.modalStyle,
|
||||
// });
|
||||
@@ -405,7 +404,7 @@ export const hideModalVideo = () => (dispatch, getState) => {
|
||||
})
|
||||
);
|
||||
} else {
|
||||
console.log('[HomePanel] shrinkVideoTo1px: No modal PlayerPanel found', {
|
||||
console.log('[HomePanel] hideModalVideo: No modal PlayerPanel found', {
|
||||
panels: panels.map((p) => ({
|
||||
name: p.name,
|
||||
modal: p.panelInfo?.modal,
|
||||
@@ -431,7 +430,7 @@ export const showModalVideo = () => (dispatch, getState) => {
|
||||
const panelInfo = shrunkModalPlayerPanel.panelInfo;
|
||||
const shrinkInfo = panelInfo.playerState?.shrinkInfo;
|
||||
|
||||
// console.log('[HomePanel] expandVideoFrom1px: expanding video', {
|
||||
// console.log('[HomePanel] showModalVideo: expanding video', {
|
||||
// hasShrinkInfo: !!shrinkInfo,
|
||||
// hasModalStyle: !!shrinkInfo?.modalStyle,
|
||||
// hasModalContainerId: !!shrinkInfo?.modalContainerId,
|
||||
@@ -450,7 +449,7 @@ export const showModalVideo = () => (dispatch, getState) => {
|
||||
}),
|
||||
};
|
||||
|
||||
// console.log('[HomePanel] expandVideoFrom1px: updated panelInfo shouldShrinkTo1px=false, modalStyle restored, skipModalStyleRecalculation=true');
|
||||
// console.log('[HomePanel] showModalVideo: updated panelInfo shouldShrinkTo1px=false, modalStyle restored, skipModalStyleRecalculation=true');
|
||||
|
||||
dispatch(
|
||||
updatePanel({
|
||||
@@ -459,7 +458,7 @@ export const showModalVideo = () => (dispatch, getState) => {
|
||||
})
|
||||
);
|
||||
} else {
|
||||
console.log('[HomePanel] expandVideoFrom1px: No shrunk modal PlayerPanel found', {
|
||||
console.log('[HomePanel] showModalVideo: No shrunk modal PlayerPanel found', {
|
||||
panels: panels.map((p) => ({
|
||||
name: p.name,
|
||||
modal: p.panelInfo?.modal,
|
||||
|
||||
Reference in New Issue
Block a user