Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/common/card/CardContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface Props {
*/
export default function CardContainer({ variant, children, className }: Props) {
const baseLayout = {
grid: 'flex flex-col lg:w-65.5 shadow-[0_0_20px_rgba(0,0,0,0.08)] rounded-3xl overflow-hidden',
grid: 'flex flex-col w-full shadow-[0_0_20px_rgba(0,0,0,0.08)] rounded-3xl overflow-hidden',
list: 'flex justify-between items-center bg-white rounded-3xl p-6 md:w-119 lg:w-160 shadow-[0_4px_24px_0_rgba(156,180,202,0.20)]',
reservation: 'flex w-full flex-col lg:flex-row ',
}[variant];
Expand Down
13 changes: 5 additions & 8 deletions src/pages/ActivityDetail/ActivityReviews.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useState } from 'react';
import Title from '@/components/common/Title';
import Pagination from '@/components/common/pagination';
import RatingStar from '@/components/common/RatingStar';
import { Star } from '@/assets/icons';
import { useActivityReviews } from '@/hooks/queries/useActivityReviews';

Expand Down Expand Up @@ -106,14 +107,10 @@ export default function ActivityReviews({ activityId }: ActivityReviewsProps) {
<span className='font-md-bold text-gray-900'>{review.user.nickname}</span>
<span className='font-md-medium text-gray-500'>{formattedDate}</span>
</div>
<div className='mb-2 flex items-center gap-1'>
{Array.from({ length: 5 }).map((_, i) => (
<Star
key={i}
className={`h-4 w-4 ${i < Math.floor(review.rating) ? 'text-yellow-500' : 'text-gray-300'}`}
/>
))}
</div>
<RatingStar
value={review.rating}
className='mb-2 gap-1 [&_button]:h-4 [&_svg]:h-4 [&_svg]:w-4'
/>
<p className='font-md-medium text-gray-800'>{review.content}</p>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ActivityDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function ActivityDetailPage() {

{/* 우츑 μ˜μ—­ - μ˜ˆμ•½ 정보 (λ°μŠ€ν¬ν†±) */}
<aside className='hidden lg:block lg:w-[384px]'>
<div className='sticky top-6'>
<div className='sticky top-24'>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

top-24와 같은 숫자 값은 '맀직 λ„˜λ²„'κ°€ 될 수 μžˆμ–΄, μ½”λ“œμ˜ μ˜λ„λ₯Ό νŒŒμ•…ν•˜κΈ° μ–΄λ ΅κ²Œ λ§Œλ“€κ³  μœ μ§€λ³΄μˆ˜λ₯Ό μ–΄λ ΅κ²Œ ν•  수 μžˆμŠ΅λ‹ˆλ‹€. 이 값이 상단 λ„€λΉ„κ²Œμ΄μ…˜ λ°”μ˜ 높이와 관련이 μžˆλ‹€λ©΄, ν•΄λ‹Ή 높이λ₯Ό CSS λ³€μˆ˜(예: var(--header-height))둜 μ •μ˜ν•˜κ³  μ‚¬μš©ν•˜λŠ” 것을 κ³ λ €ν•΄ λ³΄μ„Έμš”. μ΄λ ‡κ²Œ ν•˜λ©΄ λ‚˜μ€‘μ— 헀더 높이가 λ³€κ²½λ˜μ–΄λ„ μ—¬λŸ¬ νŒŒμΌμ„ μˆ˜μ •ν•  ν•„μš” 없이 ν•œ κ³³μ—μ„œλ§Œ 관리할 수 μžˆμ–΄ μœ μ§€λ³΄μˆ˜μ„±μ΄ ν–₯μƒλ©λ‹ˆλ‹€.

{/* 상단 정보 μ˜μ—­ */}
<ActivityInfo
category={activity.category}
Expand Down