-
- {imageData ? 'No customer images available' : 'Loading customer images...'}
+
+ {imageData
+ ? "No customer images available"
+ : "Loading customer images..."}
)}
diff --git a/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/UserReviews/CustomerImages/CustomerImages.module.less b/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/UserReviews/CustomerImages/CustomerImages.module.less
index da6f1108..6a81578e 100644
--- a/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/UserReviews/CustomerImages/CustomerImages.module.less
+++ b/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/UserReviews/CustomerImages/CustomerImages.module.less
@@ -3,7 +3,7 @@
.container {
width: 1124px;
- height: 236px;
+ height: 299px;
max-width: 1124px;
display: flex;
flex-direction: column;
@@ -14,7 +14,7 @@
margin: 0 0 10px 0;
> div {
- padding: 0;
+ padding: 0 0 0 20px;
> span {
.font(@fontFamily: @baseFont, @fontSize: 24px);
font-weight: 400;
@@ -26,7 +26,7 @@
.wrapper {
width: 100%;
- height: 190px;
+ height: 252px;
display: flex;
justify-content: flex-start;
align-items: center;
@@ -36,13 +36,25 @@
overflow: visible;
.reviewCard {
- width: calc((100% - 75px) / 6); // 6개 슬롯(5이미지+1버튼), margin-right 15px * 5 = 75px
- height: 150px;
+ // width: calc(
+ // (100% - 75px) / 6
+ // ); // 6개 슬롯(5이미지+1버튼), margin-right 15px * 5 = 75px
+ // height: 150px;
+ width: 157.3px;
+ height: 192.5px;
position: relative;
flex-shrink: 0;
margin-right: 15px;
-
+
+ &.focused {
+ width: 211.75px;
+ height: 211.75px;
+ }
+
&:focus {
+ //포커스시 확대
+ // width: 211.75px;
+ // height: 211.75px;
&::after {
.focused(@boxShadow:22px, @borderRadius:12px);
}
@@ -61,13 +73,18 @@
}
.viewMoreButton {
- width: calc((100% - 75px) / 6); // reviewCard와 동일한 크기
- height: 150px;
+ // width: calc((100% - 75px) / 6); // reviewCard와 동일한 크기
+ // height: 150px;
+ width: 157.3px;
+ height: 192.5px;
position: relative;
flex-shrink: 0;
cursor: pointer;
-
+
&:focus {
+ // //포커스시 확대
+ // width: 211.75px;
+ // height: 211.75px;
&::after {
.focused(@boxShadow:22px, @borderRadius:12px);
}
@@ -77,7 +94,11 @@
width: 100%;
height: 100%;
padding: 4px;
- background: linear-gradient(0deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.80) 100%);
+ background: linear-gradient(
+ 0deg,
+ rgba(0, 0, 0, 0.8) 0%,
+ rgba(0, 0, 0, 0.8) 100%
+ );
border-radius: 12px;
display: flex;
justify-content: center;
diff --git a/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/UserReviews/UserReviewDetail/UserReviewDetail.jsx b/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/UserReviews/UserReviewDetail/UserReviewDetail.jsx
index 5cd28bb5..7c8dc715 100644
--- a/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/UserReviews/UserReviewDetail/UserReviewDetail.jsx
+++ b/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/UserReviews/UserReviewDetail/UserReviewDetail.jsx
@@ -1,9 +1,12 @@
-import React, { useCallback } from "react";
-import classNames from "classnames";
-import Spottable from "@enact/spotlight/Spottable";
-import StarRating from "../../../components/StarRating";
-import { $L } from "../../../../../utils/helperMethods";
-import css from "./UserReviewDetail.module.less";
+import React, { useCallback } from 'react';
+
+import classNames from 'classnames';
+
+import Spottable from '@enact/spotlight/Spottable';
+
+import { $L } from '../../../../../utils/helperMethods';
+import StarRating from '../../../components/StarRating';
+import css from './UserReviewDetail.module.less';
const SpottableButton = Spottable("div");
@@ -36,9 +39,15 @@ export default function UserReviewDetail({
);
}
- const reviewImage = currentReview.reviewImageList && currentReview.reviewImageList[0];
+ const reviewImage =
+ currentReview.reviewImageList && currentReview.reviewImageList[0];
const hasMultipleReviews = totalReviews > 1;
+ const formatDate = (dateStr) => {
+ const [year, month, day] = dateStr.split("-");
+ return `${year.slice(2)}.${month}.${day}`;
+ };
+
return (
{/* Left Arrow - 이전 리뷰가 있을 때만 표시 */}
@@ -57,14 +66,14 @@ export default function UserReviewDetail({
{/* Review Image */}
{reviewImage && (
-
)}
-
+
{/* Review Info */}
{/* Rating and Meta */}
@@ -78,31 +87,29 @@ export default function UserReviewDetail({
/>
)}
-
+
{/* Email */}
{(currentReview.wrtrNknm || currentReview.rvwWrtrId) && (
{currentReview.wrtrNknm || currentReview.rvwWrtrId}
)}
-
+
{/* Date */}
{currentReview.rvwRgstDtt && (
- {currentReview.rvwRgstDtt}
+ {formatDate(currentReview.rvwRgstDtt)}
)}
-
+
{/* Review Text */}
{currentReview.rvwCtnt && (
-
- "{currentReview.rvwCtnt}"
-
+
"{currentReview.rvwCtnt}"
)}