홈 마지막 아이템 선택시에 여백 부분 처리건.

This commit is contained in:
junghoon86.park
2024-05-16 17:16:09 +09:00
parent b2e753c96d
commit 41dc727360
8 changed files with 85 additions and 60 deletions

View File

@@ -93,7 +93,7 @@ const BestSeller = ({ order, scrollTopBody, panelInfo }) => {
const orderStyle = useMemo(() => ({ order: order }), [order]);
const handleScrollRight = (e) => {
const container = e.currentTarget?.parentNode;
const x = container.scrollWidth - container.clientWidth;
const x = container.scrollWidth - container.clientWidth + 60;
setTimeout(() => {
scrollLeft({ x, animate: true });
@@ -145,11 +145,13 @@ const BestSeller = ({ order, scrollTopBody, panelInfo }) => {
)}
{drawChk && (
<SpottableComponent
<div
className={css.addItem}
onClick={handleMoreCardClick}
onFocus={handleScrollRight}
></SpottableComponent>
>
<SpottableComponent className={css.displayBox}></SpottableComponent>
</div>
)}
</TScroller>
</Container>