Skip to content

Commit

Permalink
🐛 fix team page styles on mobile when link around image is present
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Jan 10, 2025
1 parent 8c0747a commit c39e7b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion site/gdocs/components/Person.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
}
}

.person-image {
.person-image,
.person-image--link-wrapper {
picture {
display: flex; // Fix extra padding at the bottom.
}
Expand Down
8 changes: 7 additions & 1 deletion site/gdocs/components/Person.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ export default function Person({ person }: { person: EnrichedBlockPerson }) {
<div className="person">
{person.image && (
<div className="person-image-container">
{url ? <a href={url}>{image}</a> : image}
{url ? (
<a href={url} className="person-image--link-wrapper">
{image}
</a>
) : (
image
)}
{isSmallScreen && header}
</div>
)}
Expand Down

0 comments on commit c39e7b3

Please sign in to comment.