Skip to content

Commit

Permalink
Merge pull request #362 from oduck-team/style/352
Browse files Browse the repository at this point in the history
style: 일부 이미지가 흰 배경으로 나오는 현상 수정
  • Loading branch information
presentKey authored Mar 5, 2024
2 parents 41c6569 + b422155 commit 0c74a85
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
5 changes: 1 addition & 4 deletions src/features/animes/components/AnimeCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,13 @@ export default function AnimeCard({
onClick,
display = "default",
}: AnimeCardProps) {
console.log("animCard");
console.log(title, thumbnail);

return (
<AnimeCardContainer
onClick={(e: React.MouseEvent) => onClick(id, e)}
display={display}
>
<div className="image-container">
<Image className="image" image={thumbnail || ""} />
<Image className="image" image={thumbnail} />
</div>
<InfoContainer>
<Title>{title}</Title>
Expand Down
2 changes: 1 addition & 1 deletion src/features/animes/components/AnimeCard/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const Image = styled.div<ImageProps>`
border-radius: 5px;
${({ image }) => css`
background:
url(${image}),
url("${image}"),
lightgray 50% no-repeat;
`}
background-size: cover;
Expand Down
7 changes: 2 additions & 5 deletions src/features/animes/components/AnimeRanking/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ export default function AnimeRanking({ title }: AnimeRankingProps) {
}
};

console.log("animeRanking");
console.log(animes);

return (
<>
{isLoading && <AnimeRankingLoading />}
Expand All @@ -72,7 +69,7 @@ export default function AnimeRanking({ title }: AnimeRankingProps) {
{animes.map((ani, i) => (
<HighlightItemContainer key={ani.animeId}>
<HighlightItem
image={ani.thumbnail || ""}
image={ani.thumbnail}
data-anime-id={ani.animeId}
onClick={(e: React.MouseEvent) => handleClick(e)}
>
Expand Down Expand Up @@ -100,7 +97,7 @@ export default function AnimeRanking({ title }: AnimeRankingProps) {
>
{animes.map((ani, i) => (
<SliderItem key={ani.animeId}>
<SliderItemImage image={ani.thumbnail || ""}>
<SliderItemImage image={ani.thumbnail}>
<Rank className="sub-carousel">{i + 1}</Rank>
</SliderItemImage>
<div>{ani.title}</div>
Expand Down
3 changes: 0 additions & 3 deletions src/features/animes/routes/List/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ export default function AnimeList() {
enabled: animesQuery.hasNextPage,
});

console.log("uniqueAnimesQueryData");
console.log(uniqueAnimesQueryData.pages);

return (
<>
<Head
Expand Down

0 comments on commit 0c74a85

Please sign in to comment.