Skip to content

Commit

Permalink
fix: 즐겨찾기 디자인 깨짐 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ej070961 committed Nov 8, 2024
1 parent 5a529b5 commit f05a31a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ function Home() {
export default Home;
const Layout = styled.div`
${tw`flex flex-col [max-width: 480px] w-full h-[100vh] items-center m-auto`}
@supports (-webkit-touch-callout: none) {
height: -webkit-fill-available;
}
`;
14 changes: 8 additions & 6 deletions src/pages/My/FavoritesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,21 @@ function FavoritesPage() {
queryFn: () => getPhotoLikes(accessToken!),
});
return (
<Container>
<>
{likedPhotoData &&
(likedPhotoData.length > 0 ? (
likedPhotoData.map((item, index) => (
<ImageCard id={item.albumId} photoUrl={item.photoUrl} isLiked={item.like} key={index} />
))
<Container>
{likedPhotoData.map((item, index) => (
<ImageCard id={item.albumId} photoUrl={item.photoUrl} isLiked={item.like} key={index} />
))}
</Container>
) : (
<div className="w-full flex flex-col items-center mx-auto mt-20">
<div className="flex flex-col items-center mx-auto mt-20">
<NoImage />
<p className="text-gray400 mt-4">즐겨찾기한 사진이 없어요</p>
</div>
))}
</Container>
</>
);
}

Expand Down

0 comments on commit f05a31a

Please sign in to comment.