홈패널 여백 부분 확인용 05/10 2
This commit is contained in:
@@ -93,9 +93,7 @@ const BestSeller = ({ order, scrollTopBody, panelInfo }) => {
|
|||||||
const orderStyle = useMemo(() => ({ order: order }), [order]);
|
const orderStyle = useMemo(() => ({ order: order }), [order]);
|
||||||
const handleScrollRight = (e) => {
|
const handleScrollRight = (e) => {
|
||||||
const container = e.currentTarget?.parentNode;
|
const container = e.currentTarget?.parentNode;
|
||||||
const gap = 18;
|
const x = container.scrollWidth - container.clientWidth;
|
||||||
const padding = 60;
|
|
||||||
const x = container.scrollWidth - (container.clientWidth + padding - gap);
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
scrollLeft({ x, animate: true });
|
scrollLeft({ x, animate: true });
|
||||||
|
|||||||
@@ -33,9 +33,9 @@ const HomeOnSale = ({ order, scrollTopBody, ...rest }) => {
|
|||||||
const homeOnSaleInfosLength = homeOnSaleInfos?.length;
|
const homeOnSaleInfosLength = homeOnSaleInfos?.length;
|
||||||
const handleScrollRight = (e) => {
|
const handleScrollRight = (e) => {
|
||||||
const container = e.currentTarget?.parentNode;
|
const container = e.currentTarget?.parentNode;
|
||||||
const gap = 18;
|
const gap = 60;
|
||||||
const padding = 0;
|
|
||||||
const x = container.scrollWidth - (container.clientWidth + padding - gap);
|
const x = container.scrollWidth - container.clientWidth + gap;
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
scrollLeft({ x, animate: true });
|
scrollLeft({ x, animate: true });
|
||||||
|
|||||||
@@ -50,6 +50,9 @@
|
|||||||
background: linear-gradient(0.4turn, #a387ea, #7750dc);
|
background: linear-gradient(0.4turn, #a387ea, #7750dc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&:last-child {
|
||||||
|
margin-right: 60px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,9 +93,7 @@ const PopularShow = ({ homeChk = true, order, scrollTopBody, ...rest }) => {
|
|||||||
const orderStyle = useMemo(() => ({ order: order }), [order]);
|
const orderStyle = useMemo(() => ({ order: order }), [order]);
|
||||||
const handleScrollRight = (e) => {
|
const handleScrollRight = (e) => {
|
||||||
const container = e.currentTarget?.parentNode;
|
const container = e.currentTarget?.parentNode;
|
||||||
const gap = 18;
|
const x = container.scrollWidth - container.clientWidth;
|
||||||
const padding = 60;
|
|
||||||
const x = container.scrollWidth - (container.clientWidth + padding - gap);
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
scrollLeft({ x, animate: true });
|
scrollLeft({ x, animate: true });
|
||||||
|
|||||||
@@ -176,9 +176,8 @@ const SubCategory = ({ order, scrollTopBody, catCd }) => {
|
|||||||
|
|
||||||
const handleScrollRight = (e) => {
|
const handleScrollRight = (e) => {
|
||||||
const container = e.currentTarget?.parentNode;
|
const container = e.currentTarget?.parentNode;
|
||||||
const gap = 18;
|
|
||||||
const padding = 60;
|
const x = container.scrollWidth - container.clientWidth;
|
||||||
const x = container.scrollWidth - (container.clientWidth + padding - gap);
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
scrollLeft({ x, animate: true });
|
scrollLeft({ x, animate: true });
|
||||||
|
|||||||
Reference in New Issue
Block a user