Skip to content

Commit

Permalink
refactor(icon): Make the width auto (#61)
Browse files Browse the repository at this point in the history
Height should be restricted.
  • Loading branch information
5ouma authored Nov 22, 2024
1 parent 9825af8 commit 2e29503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Bio/Bio.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const { name, description, icon } = Astro.props;
}

img {
width: 6rem;
height: auto;
width: auto;
height: 6rem;
}

h1,
Expand Down
4 changes: 2 additions & 2 deletions src/components/SNS/SNS.astro
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ const { url, icon, color }: sns = getSNS(service, id);
}

svg {
width: 1.5rem;
height: auto;
width: auto;
height: 1.5rem;
opacity: 80%;
}

Expand Down

0 comments on commit 2e29503

Please sign in to comment.