Skip to content

Commit

Permalink
fix image width
Browse files Browse the repository at this point in the history
  • Loading branch information
ericrobskyhuntley committed Feb 29, 2024
1 parent 75ebab6 commit 6a27e26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/components/ImageBox.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const images = import.meta.glob<{ default: ImageMetadata }>('/src/assets/*.{jpeg

<style>
img {
-webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
filter: grayscale(100%);
mix-blend-mode: screen;
object-fit: cover;
-webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
filter: grayscale(100%);
mix-blend-mode: screen;
padding-right: 1em;
}
</style>
8 changes: 3 additions & 5 deletions src/components/Person.astro
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ const { person, columns = false} = Astro.props;
<div class="tile is-ancestor">
<div class="tile is-parent">
{"photo" in person &&
<div class="tile is-child is-3">
<figure class="image is-128x128">
<ImageBox src={person.photo} alt={"Photo of ".concat(person.name)} />
</figure>
<div class="tile is-child is-4">
<ImageBox src={person.photo} alt={"Photo of ".concat(person.name)} />
</div>}
<div class="tile is-child">
<div class="tile is-child is-8">
<p class="title is-4 has-text-white">{person.name}{person.creds && ", ".concat(person.creds.join(", "))}</p>
<p class="subtitle is-4 has-text-white">{person.roles && person.roles.join(", ")}</p>
<p class="has-text-white">{person.pronouns}</p>
Expand Down

0 comments on commit 6a27e26

Please sign in to comment.