[nbcu] 상단 배너 포커스 관련 수정

- 스타일 수정
This commit is contained in:
junghoon86.park
2025-12-11 14:01:56 +09:00
parent d640bb74ef
commit 7971bbc1db
2 changed files with 15 additions and 12 deletions

View File

@@ -1,9 +1,16 @@
import React, { memo, useCallback, useState } from "react";
import { useDispatch } from "react-redux";
import { setShowPopup } from "../../../actions/commonActions";
import CustomImage from "../../../components/CustomImage/CustomImage";
import Spottable from "@enact/spotlight/Spottable";
import css from "./TopBannerImage.module.less";
import React, {
memo,
useCallback,
useState,
} from 'react';
import { useDispatch } from 'react-redux';
import Spottable from '@enact/spotlight/Spottable';
import { setShowPopup } from '../../../actions/commonActions';
import CustomImage from '../../../components/CustomImage/CustomImage';
import css from './TopBannerImage.module.less';
const SpottableDiv = Spottable("div");
@@ -52,11 +59,6 @@ const TopBannerImage = memo(({ banrImgUrl, banrImgNm, banrNm, pupBanrImgUrl, pup
className={css.topBannerContainer}
spotlightId={spotlightId}
onClick={handleClick}
style={{
// 이미지 크기에 맞춰 컨테이너 크기 조정
width: imageDimensions.width ? `${imageDimensions.width + 30}px` : 'auto', // 패딩 15px 양쪽
height: imageDimensions.height ? `${imageDimensions.height + 30}px` : 'auto' // 패딩 15px 상하
}}
>
<img
src={banrImgUrl}

View File

@@ -5,7 +5,7 @@
position: absolute;
right: 60px;
top: 48px;
padding: 15px;
// padding: 15px;
background-color: transparent;
cursor: pointer;
@@ -29,4 +29,5 @@
pointer-events: none;
// 크기는 JavaScript에서 동적으로 설정
border-radius: 4px;
width:100%;
}