Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: 일부 이미지가 흰 배경으로 나오는 현상 수정 #362

Merged
merged 2 commits into from
Mar 5, 2024
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
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
Loading