[nbcu] 상단 배너 포커스 관련 수정
- 스타일 수정
This commit is contained in:
@@ -1,9 +1,16 @@
|
|||||||
import React, { memo, useCallback, useState } from "react";
|
import React, {
|
||||||
import { useDispatch } from "react-redux";
|
memo,
|
||||||
import { setShowPopup } from "../../../actions/commonActions";
|
useCallback,
|
||||||
import CustomImage from "../../../components/CustomImage/CustomImage";
|
useState,
|
||||||
import Spottable from "@enact/spotlight/Spottable";
|
} from 'react';
|
||||||
import css from "./TopBannerImage.module.less";
|
|
||||||
|
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");
|
const SpottableDiv = Spottable("div");
|
||||||
|
|
||||||
@@ -52,11 +59,6 @@ const TopBannerImage = memo(({ banrImgUrl, banrImgNm, banrNm, pupBanrImgUrl, pup
|
|||||||
className={css.topBannerContainer}
|
className={css.topBannerContainer}
|
||||||
spotlightId={spotlightId}
|
spotlightId={spotlightId}
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
style={{
|
|
||||||
// 이미지 크기에 맞춰 컨테이너 크기 조정
|
|
||||||
width: imageDimensions.width ? `${imageDimensions.width + 30}px` : 'auto', // 패딩 15px 양쪽
|
|
||||||
height: imageDimensions.height ? `${imageDimensions.height + 30}px` : 'auto' // 패딩 15px 상하
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={banrImgUrl}
|
src={banrImgUrl}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 60px;
|
right: 60px;
|
||||||
top: 48px;
|
top: 48px;
|
||||||
padding: 15px;
|
// padding: 15px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
@@ -29,4 +29,5 @@
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
// 크기는 JavaScript에서 동적으로 설정
|
// 크기는 JavaScript에서 동적으로 설정
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
width:100%;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user