Skip to content

Commit 9b605a6

Browse files
authored
Merge pull request #485 from geumyoung00/fix/auction-skeleton-#477
[fix ]auction list 스켈레톤 맞춤
2 parents cc02dce + e5625bf commit 9b605a6

4 files changed

Lines changed: 7 additions & 10 deletions

File tree

apps/web/src/components/auction/auction-card-skeleton.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
const AuctionItemCardSkeleton = () => {
22
return (
3-
<div className="flex w-full animate-pulse items-center justify-between gap-2.5">
4-
<div className="w-26.5 h-26.5 rounded-lg bg-neutral-200" />
5-
<div className="flex-1 space-y-2.5 [&_div]:rounded [&_div]:bg-neutral-200">
6-
<div className="h-6 w-3/4" />
3+
<div className="mb-2 flex w-full animate-pulse justify-between gap-2.5">
4+
<div className="size-21.5 rounded-lg border-neutral-200 bg-neutral-200" />
5+
<div className="mt-2 flex-1 space-y-2 [&_div]:rounded [&_div]:bg-neutral-200">
6+
<div className="h-5 w-3/4" />
77
<div className="h-4 w-3/5" />
8-
<div className="w-15 h-6" />
98
</div>
109
</div>
1110
);

apps/web/src/components/auction/categories-filter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const CategoriesFilter = () => {
1111

1212
if (isLoading || !categoriesData) {
1313
return (
14-
<div className="my-3 flex gap-2">
14+
<div className="mb-3 mt-2 flex gap-2">
1515
{Array.from({ length: 6 }).map((_, i) => (
16-
<div key={i} className="w-89 h-[35px] animate-pulse rounded bg-neutral-200" />
16+
<div key={i} className="w-89 h-[35px] animate-pulse rounded-md bg-neutral-200" />
1717
))}
1818
</div>
1919
); // 로딩 상태에서의 스켈레톤 UI

apps/web/src/components/common/auction-card/card.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,10 @@ const AuctionItemCard = ({
5555
className="relative mb-2 flex w-full items-center justify-between gap-2.5 overflow-hidden"
5656
>
5757
<div className="z-auto">
58-
{/* <BadgeBidStatus status={finalStatus} /> */}
5958
<Thumbnail
6059
url={thumbnailUrl}
6160
alt={`${title} 썸네일`}
6261
size={86}
63-
className="size-24"
6462
priority={idx! < 5}
6563
quality={50}
6664
fetchPriority={idx === 0 ? 'high' : undefined}

apps/web/src/components/common/auction-card/list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const AuctionItemList = ({
4747

4848
if (isLoading) {
4949
return (
50-
<div className="flex min-h-[100vhd] flex-col gap-4">
50+
<div className="flex min-h-[100vhd] flex-col">
5151
{Array.from({ length: 5 }).map((_, i) => (
5252
<AuctionItemCardSkeleton key={i} />
5353
))}

0 commit comments

Comments
 (0)