Skip to content

Commit

Permalink
Fix image padding
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Oct 29, 2024
1 parent 5f17a21 commit 10611c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/team/PersonImage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ interface Props {
const { imagePath } = Astro.props;
const images = import.meta.glob<{ default: ImageMetadata }>(
"/src/assets/**/*.{jpeg,jpg,png,gif,webp}",
"/src/assets/**/*.{jpeg,jpg,png,gif,webp}"
);
---

<Image
class={clsx(
"mx-auto h-40 w-40 rounded-full object-cover shadow-lg xl:h-56 xl:w-56",
imagePath && "p-5",
imagePath || "p-5"
)}
src={imagePath ? images[imagePath]() : WsgHandsImage}
alt=""
Expand Down

0 comments on commit 10611c5

Please sign in to comment.