Skip to content

Commit

Permalink
add height and width to icons
Browse files Browse the repository at this point in the history
  • Loading branch information
astone123 committed Nov 26, 2023
1 parent 353059a commit a8b254d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/IconLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@ export function IconLink({
class={`${
darkIconPath ? "dark:hidden" : ""
} w-[45px] sm:w-[30px] sm:hover:w-[35px] sm:motion-reduce:hover:w-[30px] transition-all duration-200 motion-reduce:transition-none`}
width="30"
height="30"
alt={altText}
src={iconPath}
/>
{darkIconPath && (
<img
class="hidden dark:block w-[45px] sm:w-[30px] sm:hover:w-[35px] sm:motion-reduce:hover:w-[30px] transition-all duration-200 motion-reduce:transition-none"
width="30"
height="30"
alt={altText}
src={darkIconPath}
/>
Expand Down

0 comments on commit a8b254d

Please sign in to comment.