Skip to content

Commit

Permalink
refactor: 이미지 대체텍스트가 overflow되어 레이아웃을 벗어나는 이슈 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
shackstack committed Aug 25, 2024
1 parent 7d1fd0f commit 66f7c75
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ function ProfileImage({ name = '셀럽', imageUrl, size, boxShadow = false, ...p
export default ProfileImage;

const StyledProfile = styled.img<{ size: string; boxShadow: boolean }>`
${paintSkeleton}
display: inline-block;
width: ${({ size }) => size || 'auto'};
height: ${({ size }) => size || 'auto'};
Expand All @@ -25,6 +26,10 @@ const StyledProfile = styled.img<{ size: string; boxShadow: boolean }>`
object-fit: cover;
line-height: ${({ size }) => size || 'auto'};
text-align: center;
${paintSkeleton}
${({ boxShadow }) =>
boxShadow &&
css`
Expand Down

0 comments on commit 66f7c75

Please sign in to comment.